Deployed Contracts

Fetch the contract ABI

Fetch the ABI. If not found fetch the ABI from the block explorer

post/tokenization/contracts/fetch_abi

Request

Headers

Idempotency-Keystring

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.

Request body

baseAssetIdstring required

The blockchain base assetId

contractAddressstring required

The contract's onchain address

Example request

{
  "baseAssetId": "ETH",
  "contractAddress": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"
}

Response

Contract ABI found.

contractAddressstring required

The address of the contract

baseAssetIdstring required

The blockchain base assetId

namestring required

The name of the contract

isProxyboolean

Whether the contract is a proxy contract

implementationstring

The implementation contract address

isPublicboolean required

Whether the contract ABI is public

Example response

{
  "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"
    }
  ],
  "isProxy": true,
  "implementation": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
  "isPublic": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.