For the complete documentation index, see llms.txt. This page is also available as Markdown.

3. Check Funds

Description

Check detailed funds information of an account, including total amount and available amount of deposited funds.

TBD: Narratives

User Interface

Function Description

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.

ABI Description

Examples

Calling Examples

HTTP Request Example

Send a Withdrawal Transaction

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

Request Body

Name
Type
Description

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:

Last updated