// This example is written by using Web3.js// More details on Web3.js could be found here - https://web3js.readthedocs.io/var Web3 =require('web3');constBigNumber=require('bignumber.js');// BSC Mainnet: https://bsc-dataseed.binance.org// BSC Testnet: https://data-seed-prebsc-1-s1.binance.org:8545constweb3=newWeb3("https://data-seed-prebsc-1-s1.binance.org:8545");constCONTRACT_ADDRESS="Replace with trading contract address";constABI= [{"inputs": [{"internalType":"address","name":"","type":"address" }],"name":"userAccount","outputs": [{"internalType":"uint256","name":"depositAmount","type":"uint256" }, {"internalType":"uint256","name":"availableAmount","type":"uint256" }],"stateMutability":"view","type":"function"}];var contract =newweb3.eth.Contract(ABI,CONTRACT_ADDRESS);contract.methods.userAccount("Replace with User Address").call({},function(error, result){if(!error) {console.log('Response:', result); } else {console.log(error); }});
# This example is written by using Web3.py
# More details on Web3.py could be found here - https://web3py.readthedocs.io/
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