// 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 underlying assets contract address";constABI= [{"inputs": [ {"internalType":"enum ISLDCommon.ContractType","name":"_contractType","type":"uint8" } ],"name":"getFundingFeeRate","outputs": [ {"internalType":"uint256","name":"_fundingFeeRate","type":"uint256" } ],"stateMutability":"view","type":"function"}];var contract =newweb3.eth.Contract(ABI,CONTRACT_ADDRESS);// CALLcontract.methods.getFundingFeeRate(1).call({},function(error, result){if(!error) {console.log('Response:', result); } else {console.log(error); }});// PUTcontract.methods.getFundingFeeRate(2).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 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