POST
/
v1
/
wallets
/
{walletId}
/
addresses
/
{addressId}
/
contracts
/
read
curl --request POST \
  --url https://api.blockradar.co/v1/wallets/{walletId}/addresses/{addressId}/contracts/read \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "totalSupply",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "method": "totalSupply()",
  "parameters": []
}'
{
  "data": "10052335235393043",
  "message": "Contract read successfully",
  "statusCode": 200
}

Authorizations

x-api-key
string
header
required

Path Parameters

walletId
string
required
Example:

"YOUR_WALLET_ID"

addressId
string
required
Example:

"ADDRESS_ID"

Body

application/json
abi
object[]
Example:
[
  {
    "constant": true,
    "inputs": [],
    "name": "totalSupply",
    "outputs": [{ "name": "", "type": "uint256" }],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  }
]
address
string
Example:

"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"

method
string
Example:

"totalSupply()"

parameters
any[]
Example:
[]

Response

200 - application/json
Ethereum / Tron
data
string
Example:

"10052335235393043"

message
string
Example:

"Contract read successfully"

statusCode
number
Example:

200