3. Check Funds
Last updated
Last updated
Check detailed funds information of an account, including total amount and available amount of deposited funds.
TBD: Narratives
Item
Description
Contract Address
Trading contract (referenced by Smart Contract Overview section)
Contract Name
SLDDAIContract.sol
Constant
mapping(address=>AccountInfo) public userAccount;
Struct
struct AccountInfo{ uint256 depositAmount; uint256 availableAmount; }
Function Selector
0xea5eda32
Invocation Type
Ethereum Call
Passing Parameters
User address
Return Value
The amount of deposited funds; The available amount of funds.
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a contract call to get deposited funds details of Shield Protocol V1. More details on how to make a contract call request via BSC RPC could be found here, https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction
jsonrpc
string
"2.0"
method
string
"eth_call"
params
array
the signed transaction data coerced into string array, for instance,
id
number
request sequence id, you could use timestamp as id
Request Body Example:
CURL Example: