Fetch the contract ABI
Fetch the ABI. If not found fetch the ABI from the block explorer
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.
Body
application/json
Response
Contract ABI found.
The address of the contract
Example:
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"
The blockchain base assetId
Example:
"ETH_TEST6"
The name of the contract
Example:
"WETH9"
The ABI of the contract
Example:
[
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "mint"
}
]Whether the contract ABI is public
Example:
true
Whether the contract is a proxy contract
Example:
true
The implementation contract address
Example:
"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"
TypeScript