Decode a function call data, error, or event log
Decode a function call data, error, or event log from a deployed contract by blockchain native asset id and contract address.
POST
TypeScript
Headers
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Path Parameters
The contract's onchain address
The blockchain native asset identifier
Body
application/json
The data to decode, which can be a string or an object containing the data and its type.
Example:
"0x1234567890abcdef"
The type of the data to decode.
Available options:
ERROR, LOG, FUNCTION Example:
"FUNCTION"
The abi of the function/error/log to decode.
Example:
[
{
"inputs": [
{ "name": "to", "type": "address" },
{ "name": "amount", "type": "uint256" }
],
"stateMutability": "nonpayable",
"type": "function",
"name": "transfer"
}
]Previous
Get contract address by transaction hashRetrieve the contract address by blockchain native asset ID and transaction hash
Next
TypeScript