Login
Registration
Login
Registration
  • πŸ‘‰ Welcome
  • 🧐 How to set up an account
  • πŸ“ˆ Monitoring and analytics
  • πŸ” Introducing coins vs tokens
  • πŸ‘¨β€πŸ’Ό The meaning of owning crypto
  • πŸ’° Wallets
  • πŸ“œ Supported Blockchains
  • API REFERENCE
    • Bitcoin
      • πŸ” Info
        • 🧐 Check BTC node health
        • πŸ“œ Get latest Bitcoin block
      • πŸ†Ž Block
        • πŸ“ˆ Get Bitcoin block by height
        • πŸ‘¨β€πŸ’» Get Bitcoin block by hash
        • πŸ“‘ Get transaction count in block by height
        • πŸ“‘ Get transaction count in block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get Bitcoin transaction by hash
        • πŸ“ Send pre-signed raw Bitcoin transaction
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ’° List BTC addresses managed by node wallet
        • πŸ†Ž Get BTC received amount for address
      • πŸ” JSON-RPC
    • Ethereum
      • πŸ” Info
        • 🧐 Check ETH node health
        • πŸ“œ Get latest Ethereum block
      • πŸ†Ž Block
        • πŸ“ˆ Get Ethereum block by height
        • πŸ‘¨β€πŸ’» Get Ethereum block by hash
        • πŸ“‘ Get transaction count in block by height
        • πŸ“‘ Get transaction count in block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get Ethereum transaction by hash
        • πŸ‘¨β€πŸ’» Get Ethereum transaction receipt by hash
        • πŸ“ Send pre-signed raw Ethereum transaction
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ” List ETH accounts managed by node
        • πŸ†Ž Get ETH balance for address
        • πŸ†Ž Get transaction count (nonce) for address
        • πŸ‘‰ Estimate gas for transaction
        • πŸ“‘ Read-only contract call (eth_call)
        • πŸ‘¨β€πŸ’Ό Get ETH received amount for address
      • πŸ” JSON-RPC
    • Tron
      • πŸ” Info
        • πŸ“‘ Get TRX node info
        • 🧐 Check Tron node health
      • πŸ†Ž Block
        • πŸ“œ Get latest Tron block
        • πŸ“œ Get latest N blocks
        • 🟠 Get block by number
        • πŸ‘¨β€πŸ’» Get block by hash
      • πŸ’° Transactions
        • πŸ‘¨β€πŸ’» Get transaction by hash
        • πŸ†Ž Get all transactions for an address
      • πŸ‘¨β€πŸ’Ό Account
        • πŸ†Ž Validate a Tron address
        • πŸ” Get account information
        • πŸ’° Get account balance
        • πŸ†Ž Create a new Tron address
        • πŸ’΅ Generate a private key from a mnemonic
        • πŸ“Š Send TRX from one address to another
        • πŸ“Š Send USDT (TRC20) from one address to another
      • ✳️ Webhooks
        • πŸ‘¨β€πŸ“œ List webhooks
        • 🧐 Create webhook
        • πŸ‘‰ Get webhook
        • πŸ‘¨β€πŸ” Get transaction by hash
        • ❌ Get all transactions for an address
      • πŸ“Š Schemas

πŸ” Generic JSON-RPC proxy to BTC node

Code samples

POST /api/v1/btc/jsonrpc

Proxies any valid Bitcoin JSON-RPC 1.0 request to the configured BTC node. The request body is forwarded as-is and the node's response is returned.

Body parameter

{
  "jsonrpc": "1.0",
  "method": "getblockchaininfo",
  "params": [
    null
  ],
  "id": null
}

πŸ› οΈ Parameters

NameInTypeRequiredDescription
bodybodyanytruenone

Example responses

200 Response

{}

πŸ” Responses

StatusMeaningDescriptionSchema
200OKJSON-RPC response from BTC nodeInline
500Internal Server ErrorBTC node URL or credentials are not configuredBtcJsonRpcError
502Bad GatewayFailed to connect to BTC nodeBtcJsonRpcError

πŸ”„ Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: ApiKeyAuth

Schemas

BtcBlock

{
  "hash": "string",
  "confirmations": 0,
  "height": 0,
  "version": 0,
  "versionHex": "string",
  "merkleroot": "string",
  "time": 0,
  "mediantime": 0,
  "nonce": 0,
  "bits": "string",
  "difficulty": 0.1,
  "chainwork": "string",
  "nTx": 0,
  "strippedsize": 0,
  "size": 0,
  "weight": 0,
  "previousblockhash": "string",
  "nextblockhash": "string",
  "tx": [
    "string"
  ]
}

Bitcoin block object as returned by getblock with verbosity 1 or 2.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
hashstringfalsenoneHash of the block.
confirmationsinteger(int64)falsenoneNumber of confirmations for the block.
heightinteger(int64)falsenoneBlock height.
versionintegerfalsenoneBlock version.
versionHexstringfalsenonenone
merklerootstringfalsenoneMerkle root of the block's transactions.
timeinteger(int64)falsenoneBlock time in seconds since Unix epoch.
mediantimeinteger(int64)falsenonenone
nonceinteger(int64)falsenonenone
bitsstringfalsenonenone
difficultynumber(double)falsenonenone
chainworkstringfalsenonenone
nTxinteger(int64)falsenoneNumber of transactions in the block.
strippedsizeinteger(int64)falsenonenone
sizeinteger(int64)falsenonenone
weightinteger(int64)falsenonenone
previousblockhashstring¦nullfalsenonenone
nextblockhashstring¦nullfalsenonenone
tx[oneOf]falsenoneTransactions included in the block. When verbosity=2, this is an array of full transaction objects; otherwise it may be an array of transaction IDs.

oneOf

NameTypeRequiredRestrictionsDescription
Β» anonymousstringfalsenonenone

xor

NameTypeRequiredRestrictionsDescription
Β» anonymousBtcTransactionfalsenoneBitcoin transaction object as returned by getrawtransaction with verbose=true.

BtcTransaction

{
  "txid": "string",
  "hash": "string",
  "version": 0,
  "size": 0,
  "vsize": 0,
  "weight": 0,
  "locktime": 0,
  "blockhash": "string",
  "confirmations": 0,
  "time": 0,
  "blocktime": 0,
  "hex": "string",
  "vin": [
    {
      "txid": "string",
      "vout": 0,
      "coinbase": "string",
      "scriptSig": {
        "asm": "string",
        "hex": "string"
      },
      "sequence": 0
    }
  ],
  "vout": [
    {
      "value": 0.1,
      "n": 0,
      "scriptPubKey": {
        "asm": "string",
        "hex": "string",
        "type": "string",
        "reqSigs": 0,
        "addresses": [
          "string"
        ]
      }
    }
  ]
}

Bitcoin transaction object as returned by getrawtransaction with verbose=true.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
txidstringfalsenoneTransaction ID.
hashstringfalsenonenone
versionintegerfalsenonenone
sizeintegerfalsenonenone
vsizeintegerfalsenonenone
weightintegerfalsenonenone
locktimeintegerfalsenonenone
blockhashstring¦nullfalsenonenone
confirmationsinteger(int64)Β¦nullfalsenonenone
timeinteger(int64)Β¦nullfalsenonenone
blocktimeinteger(int64)Β¦nullfalsenonenone
hexstringfalsenoneRaw hex-encoded transaction.
vin[BtcVin]falsenone[Transaction input (vin) entry.]
vout[BtcVout]falsenone[Transaction output (vout) entry.]

BtcVin

{
  "txid": "string",
  "vout": 0,
  "coinbase": "string",
  "scriptSig": {
    "asm": "string",
    "hex": "string"
  },
  "sequence": 0
}

Transaction input (vin) entry.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
txidstring¦nullfalsenonenone
voutinteger¦nullfalsenonenone
coinbasestring¦nullfalsenonenone
scriptSigobject¦nullfalsenonenone
Β» asmstringfalsenonenone
Β» hexstringfalsenonenone
sequenceinteger(int64)falsenonenone

BtcVout

{
  "value": 0.1,
  "n": 0,
  "scriptPubKey": {
    "asm": "string",
    "hex": "string",
    "type": "string",
    "reqSigs": 0,
    "addresses": [
      "string"
    ]
  }
}

Transaction output (vout) entry.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
valuenumber(double)falsenoneValue in BTC.
nintegerfalsenoneOutput index.
scriptPubKeyobjectfalsenonenone
Β» asmstringfalsenonenone
Β» hexstringfalsenonenone
Β» typestringfalsenonenone
» reqSigsinteger¦nullfalsenonenone
Β» addresses[string]Β¦nullfalsenonenone

BtcReceivedByAddress

{
  "address": "string",
  "amount": 0.1,
  "confirmations": 0,
  "label": "string",
  "txids": [
    "string"
  ]
}

Entry returned by listreceivedbyaddress.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
addressstringfalsenoneBitcoin address.
amountnumber(double)falsenoneTotal amount received by this address in BTC.
confirmationsinteger(int64)falsenonenone
labelstring¦nullfalsenonenone
txids[string]falsenonenone

BtcJsonRpcRequest

{
  "jsonrpc": "1.0",
  "method": "getblockchaininfo",
  "params": [
    null
  ],
  "id": null
}

Generic Bitcoin JSON-RPC 1.0 request.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
jsonrpcstringfalsenonenone
methodstringtruenoneBitcoin JSON-RPC method name (e.g. getblockchaininfo).
params[any]truenonePositional parameters for the method.
idanyfalsenoneRequest identifier (string, number, or null).

BtcJsonRpcError

{
  "error": {
    "code": -32603,
    "message": "Failed to connect to BTC node"
  }
}

Error response used when BTC JSON-RPC proxy fails.

πŸ› οΈ Properties

NameTypeRequiredRestrictionsDescription
errorobjectfalsenonenone
Β» codeintegerfalsenonenone
Β» messagestringfalsenonenone
Prev
πŸ‘¨β€πŸ’Ό Account