[SOLVED] Moralis API /{address}/function param error

Im trying to call a function (api /address/function) and the parameter is in uint256 type. I keyed in 1000000000000000000 in the value and i got this error:

{
“message”: “overflow (fault=“overflow”, operation=“BigNumber.from”, value=1000000000000000000, code=NUMERIC_FAULT, version=bignumber/5.4.2)”
}

the function I am trying to call is royaltyInfo

and the ABI is

{
“inputs”: [
{
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “salePrice”,
“type”: “uint256”
}
],
“name”: “royaltyInfo”,
“outputs”: [
{
“internalType”: “address”,
“name”: “receiver”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “royaltyAmount”,
“type”: “uint256”
}
],
“stateMutability”: “view”,
“type”: “function”
}

Maybe, try passing the param salePrice value as string '1000000000000000000'.

wow. it worked. thanks.