{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fireblocks Blockchains and Assets Approval Requests Contract Interactions API",
    "version": "1.8.0"
  },
  "items": [
    {
      "info": {
        "name": "Contract Interactions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Return deployed contract's ABI",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fireblocks.io/v1/contract_interactions/base_asset_id/:baseAssetId/contract_address/:contractAddress/functions",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contractAddress",
                "value": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66",
                "type": "path",
                "description": "The contract's onchain address"
              },
              {
                "name": "baseAssetId",
                "value": "ETH",
                "type": "path",
                "description": "The blockchain base assetId"
              }
            ]
          },
          "docs": "Return deployed contract's ABI by blockchain native asset id and contract address.\n</br>Endpoint Permission: Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer."
        },
        {
          "info": {
            "name": "Call a read function",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fireblocks.io/v1/contract_interactions/base_asset_id/:baseAssetId/contract_address/:contractAddress/functions/read",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contractAddress",
                "value": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66",
                "type": "path",
                "description": "The contract's onchain address"
              },
              {
                "name": "baseAssetId",
                "value": "ETH",
                "type": "path",
                "description": "The blockchain base assetId"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Call a read function on a deployed contract by blockchain native asset id and contract address.\n</br>Endpoint Permission: Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor."
        },
        {
          "info": {
            "name": "Call a write function",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fireblocks.io/v1/contract_interactions/base_asset_id/:baseAssetId/contract_address/:contractAddress/functions/write",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contractAddress",
                "value": "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66",
                "type": "path",
                "description": "The contract's onchain address"
              },
              {
                "name": "baseAssetId",
                "value": "ETH",
                "type": "path",
                "description": "The blockchain base assetId"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check.\n\n</br>Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor."
        },
        {
          "info": {
            "name": "Get transaction receipt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fireblocks.io/v1/contract_interactions/base_asset_id/:baseAssetId/tx_hash/:txHash/receipt",
            "params": [
              {
                "name": "baseAssetId",
                "value": "ETH_TEST6",
                "type": "path",
                "description": "The blockchain base assetId"
              },
              {
                "name": "txHash",
                "value": "0x3b015ca0518c55d7bff4e3f5aa5d0431705771553ba8a95cf20e34cb597f57f6",
                "type": "path",
                "description": "The transaction hash"
              }
            ]
          },
          "docs": "Retrieve the transaction receipt by blockchain native asset ID and transaction hash\n\n</br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, and Viewer."
        }
      ]
    }
  ],
  "bundled": true
}