9. Check Funds on Private Pool
Last updated
Last updated
Check detailed information on funds deposited in private public liquidity pool.
TBD: Narratives
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a contract call to get deposited funds details in private pool 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 Example:
CURL Example:
Name | Type | Description |
---|---|---|
Item
Description
Contract Address
Private pool contract (referenced by Smart Contract Overview section)
Contract Name
SLDDAIPools2.sol
Function
function getLPAmountInfo() public view returns(uint256 deposit,uint256 availabe,uint256 locked)
Function Selector
0x53ac2d24
Invocation Type
Ethereum Call
Passing Parameters
None
Return Value
Total deposited amount; available amount; locked amount
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