v1

latestOpenAPI 3.0.32026-07-26184851.6 MB
Smart Contract

Master Wallet Read

This API provides endpoints for interacting with smart contracts on the blockchain. It allows for reading contract data,

Request Body

The request body should be in raw format and include the following parameters:

ParameterTypeRequiredDescription
addressstringYesThe address of the contract.
methodstringYesThe method to be called on the contract.
parametersarrayYesAn array of parameters to pass to the method.
abiarrayYesAn array containing the ABI of the contract or method.
post/v1/wallets/{walletId}/contracts/read

Request body

Example request

{
  "calls": [
    {
      "abi": [
        {
          "constant": true,
          "inputs": [
            {
              "name": "account",
              "type": "address"
            }
          ],
          "name": "balanceOf",
          "outputs": [
            {
              "name": "",
              "type": "uint256"
            }
          ],
          "stateMutability": "view",
          "type": "function"
        }
      ],
      "address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
      "method": "balanceOf",
      "parameters": [
        "0x947514e4B803e312C312da0F1B41fEDdbe15ae7a"
      ]
    },
    {
      "abi": [
        {
          "constant": true,
          "inputs": [
            {
              "name": "owner",
              "type": "address"
            },
            {
              "name": "spender",
              "type": "address"
            }
          ],
          "name": "allowance",
          "outputs": [
            {
              "name": "",
              "type": "uint256"
            }
          ],
          "stateMutability": "view",
          "type": "function"
        }
      ],
      "address": "0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",
      "method": "allowance",
      "parameters": [
        "0x947514e4B803e312C312da0F1B41fEDdbe15ae7a",
        "0xSpenderAddress"
      ]
    }
  ]
}

Response

Ethereum / Tron / Ethereum (Batch) / Tron (Batch)

messagestring
statusCodenumber

Example response

{
  "data": "10052335235393043",
  "message": "Contract read successfully",
  "statusCode": 200
}