GET
/
contracts
/
{hash}
Contract Details
curl --request GET \
  --url https://api.amberdata.com/blockchains/contracts/{hash} \
  --header 'x-api-key: <api-key>'
{
  "description": "Successful request",
  "payload": {
    "abi": [
      {
        "constant": true,
        "inputs": [
          {
            "name": "_interfaceID",
            "type": "bytes4"
          }
        ],
        "name": "supportsInterface",
        "outputs": [
          {
            "name": "",
            "type": "bool"
          }
        ],
        "payable": false,
        "stateMutability": "view",
        "type": "function"
      }
    ],
    "bytecode": "0x60806040...",
    "contractName": "CryptoKitties",
    "source": "pragma solidity ^0.4.11;\n\ncontract Example {\n    // Contract body...\n}\n"
  },
  "status": 200,
  "title": "OK"
}

Authorizations

x-api-key
string
header
required

Headers

x-amberdata-blockchain-id
enum<string>
default:ethereum-mainnet

The id of the blockchain

Available options:
ethereum-mainnet

Path Parameters

hash
string
default:0x06012c8cf97bead5deae237070f9587f8e7a266d
required

The address of the contract

Response

200
application/json

OK

The response is of type object.