Hey I have ongoing problem with web3 API running a function, here is the full screen of my request. This is ongoing from almost a week
can you paste the parameters that you used?
here is my request
curl -X 'POST' \
'https://deep-index.moralis.io/api/v2/0xFFE811714ab35360b67eE195acE7C10D93f89D8C/function?chain=bsc&function_name=userInfoTotals' \
-H 'accept: application/json' \
-H 'X-API-Key: XXX' \
-H 'Content-Type: application/json' \
-d '{
"abi": [{
"inputs": [{ "internalType": "address", "name": "_addr", "type": "address" }],
"name": "userInfoTotals",
"outputs": [
{ "internalType": "uint256", "name": "referrals", "type": "uint256" },
{ "internalType": "uint256", "name": "total_deposits", "type": "uint256" },
{ "internalType": "uint256", "name": "total_payouts", "type": "uint256" },
{ "internalType": "uint256", "name": "total_structure", "type": "uint256" },
{ "internalType": "uint256", "name": "airdrops_total", "type": "uint256" },
{ "internalType": "uint256", "name": "airdrops_received", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
}],
"params": {'\''0xca2FAaBB359aaE69D136E115e60b817c8C99A0B2'\''}
}'
this works fine:
curl -X 'POST' \
'https://deep-index.moralis.io/api/v2/0xFFE811714ab35360b67eE195acE7C10D93f89D8C/function?chain=bsc&function_name=userInfoTotals' \
-H 'accept: application/json' \
-H 'X-API-Key: asdfadfsadf' \
-H 'Content-Type: application/json' \
-d '{
"abi": [{
"inputs": [{ "internalType": "address", "name": "_addr", "type": "address" }],
"name": "userInfoTotals",
"outputs": [
{ "internalType": "uint256", "name": "referrals", "type": "uint256" },
{ "internalType": "uint256", "name": "total_deposits", "type": "uint256" },
{ "internalType": "uint256", "name": "total_payouts", "type": "uint256" },
{ "internalType": "uint256", "name": "total_structure", "type": "uint256" },
{ "internalType": "uint256", "name": "airdrops_total", "type": "uint256" },
{ "internalType": "uint256", "name": "airdrops_received", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
}],
"params": {"_addr": "0xca2FAaBB359aaE69D136E115e60b817c8C99A0B2"}
}'
1 Like