1. Deposit Funds
Last updated
Last updated
Make a deposit to an account. Regardless of the taker or the maker, the DAI needs to be deposited prior to making an order.
TBD: Narratives
Item | Description |
Contract Address | Trading contract (referenced by Smart Contract Overview section) |
Contract Name | SLDDAIContract.sol |
Function | function deposit(uint256 amount) |
Function Selector | 0xb6b55f25 |
Invocation Type | Ethereum Transaction |
Passing Parameters | Amount of DAIs deposited; actual number multiplied by 1E18 |
Return Value | None |
Event Emitted | event DDSDeposit(address indexed sender, address indexed toAddr, uint256 motageAmount); |
Event Signature | 0x8741a00229f2b8b24379b60f7a4ba3a3f3d92f328280c47a38cd03504ac72c42 |
Transaction Sample(BSC testnet) |
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a deposit transaction to Shield Protocol V1 on BSC network. More details on how to send a transaction via BSC RPC could be found here, https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction
Name | Type | Description |
---|---|---|
jsonrpc | string | "2.0" |
method | string | "eth_sendRawTransaction" |
params | array | the signed transaction data coerced into string array |
id | number | request sequence id, you could use timestamp as id |