Bitcoin

On-chain Data Sources for Bitcoin Mainnet and Signet

Bitcoin Transactions

Name: BitcoinTransactions

Type: list<BitcoinTransaction>

Get the transactions of the current block.

The return transactions do NOT include the coinbase transaction

Bitcoin Transaction By Id

Name: BitcoinTransactionById

Type: BitcoinTransaction

Get the transaction with the gived id.

Coinbase transactions are NOT supported

In gate files that run on non bitcoin-based chains, this data source defaults to Bitcoin Mainnet. You can override the chainId (see Cross Chain) to run this on other bitcoin chains, like Signet.

Parse Bitcoin Transaction Hex

Name: ParseBitcoinTransactionHex

Type: BitcoinTransaction

Parse a Bitcoin transaction from its hexadecimal representation.

Coinbase transactions are NOT supported

Bitcoin Balance

Name: BitcoinBalance

Type: integer

Get the balance (in satoshis) of a specified address.

This data source is only supported for the Bitcoin Mainnet.

Xpub Bitcoin Balance

Name: XpubBitcoinBalance

Type: integer

Retrieve the balance (in satoshis) of a wallet using its xpub.

This data source is only supported for the Bitcoin Mainnet.

Last updated