8. Withdraw DAI from Private Pool
Last updated
Last updated
Withdraw DAI from private liquidity pool.
TBD: Narratives & Rules of withdrawal
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 |
---|---|---|
Item
Description
Contract Address
Private pool contract (referenced by Smart Contract Overview section)
Contract Name
SLDDAIPools2.sol
Function
function withdraw(uint256 amount)
Function Selector
0x2e1a7d4d
Invocation Type
Ethereum Transaction
Passing Parameters
Amount of DAIs to withdraw; actual number multiplied by 1E18
Return Value
None
Event Emitted
event Withdraw(address indexed account, uint256 amount);
Event Signature
0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364
Transaction Sample(BSC testnet)
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