Deployed Contracts

Save contract ABI

Save contract ABI for the tenant

post/tokenization/contracts/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

contractAddressstring required

The address of deployed contract

baseAssetIdstring required

The blockchain base assetId

namestring

The name of the contract

Example request

{
  "contractAddress": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
  "baseAssetId": "ETH",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "to",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function",
      "name": "mint"
    }
  ],
  "name": "MyContract"
}

Response

Contract ABI created (or updated) for the tenant

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.