Skip to main content
POST
/
tokenization
/
contracts
/
fetch_abi
TypeScript
const response: Promise<FireblocksResponse<ContractWithAbiDto>> = fireblocks.deployedContracts.fetchContractAbi(deployedContractsApiFetchContractAbiRequest);
{
  "contractAddress": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
  "baseAssetId": "ETH_TEST6",
  "name": "WETH9",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "to",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function",
      "name": "mint"
    }
  ],
  "isPublic": true,
  "isProxy": true,
  "implementation": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14"
}

Documentation Index

Fetch the complete documentation index at: https://fireblocks-43c4b3ee-chore-add-cli.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Idempotency-Key
string

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
baseAssetId
string
required

The blockchain base assetId

Example:

"ETH"

contractAddress
string
required

The contract's onchain address

Example:

"0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"

Response

Contract ABI found.

contractAddress
string
required

The address of the contract

Example:

"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"

baseAssetId
string
required

The blockchain base assetId

Example:

"ETH_TEST6"

name
string
required

The name of the contract

Example:

"WETH9"

abi
object[]
required

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"
}
]
isPublic
boolean
required

Whether the contract ABI is public

Example:

true

isProxy
boolean

Whether the contract is a proxy contract

Example:

true

implementation
string

The implementation contract address

Example:

"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"