Skip to main content
POST
/
tokenization
/
contracts
/
abi
TypeScript
const response: Promise<FireblocksResponse<ContractWithAbiDto>> = fireblocks.deployedContracts.addContractABI(deployedContractsApiAddContractABIRequest);
{
  "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
contractAddress
string
required

The address of deployed contract

Example:

"0xfff9976782d46cc05630d1f6ebab18b2324d6b14"

baseAssetId
string
required

The blockchain base assetId

Example:

"ETH"

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"
  }
]
name
string

The name of the contract

Example:

"MyContract"

Response

Contract ABI created (or updated) for the tenant

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"