Skip To Content

Blockdaemon Documentation

Transactions

Overview
GET Transaction by Hash (V1)
GET Transaction Output by Hash and Index (V1)
GET Transaction Confirmations by Hash (V1)
GET All Transactions (V1)
GET Transaction by Hash (V2)
GET All Transactions (V2)


Overview

The Ubiquity Universal API endpoints listed in this section allow the retrieval of transaction information for a given protocol and network.

As with all Ubiquity Universal API endpoints, they provide a standard format to obtain consistent information across multiple protocols.


GET Transaction by Hash (V1)

https://ubiquity.api.blockdaemon.com/v1/{protocol}/{network}/tx/{id}

Returns details of a transaction by a given transaction hash.

Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • litecoin/mainnet

It is also is required to add a transaction hash, e.g.:

  • 0c8dee3953d6cbae771815ba285856a30e2da0ee0b12e2e2c85d5be51a70e0ed

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
AlgorandMainnetalgorand/mainnet
BitcoinMainnet
Testnet
bitcoin/mainnet
bitcoin/testnet
Bitcoin CashMainnet
Testnet
bitcoincash/mainnet
bitcoincash/testnet
LitecoinMainnet
Testnet
litecoin/mainnet
litecoin/testnet
SolanaMainnetsolana/mainnet
StellarMainnetstellar/mainnet
TerraMainnet
Testnet
terra/mainnet
terra/testnet
TezosMainnettezos/mainnet
XRPMainnetxrp/mainnet

GET Transaction Output by Hash and Index (V1)

https://ubiquity.api.blockdaemon.com/v1/{protocol}/{network}/tx/{id}/{index}

Returns a transaction output (UTXO) by a given transaction hash and a given output index.

The output can be unspent, spent, or unknown (if the transaction was not found or does not exist). For any spent output this endpoint returns information about the transaction where it was used as input.

Developer documentation: GET Transaction Output by Hash and Index (V1)
Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • bitcoin/mainnet

It is also is required to add a transaction hash, e.g.:

  • 000ed6ef37fb212bf8488454e74fb5ab40ff22d96de55e8799b0e4d2d2ee946b

Finally, add an output index (integer):

  • 0, 1, etc.

To find output indexes, see utxo_output events returned by GET Transaction by Hash (V1). Each of them has an id and a meta.index section, both containing its index:

"events": [
    {
        "id": "ffd7746484a29cffd678cefe65bca83a3813b1770cd4e20fd538f13ce7795056-0",
        "transaction_id": "ffd7746484a29cffd678cefe65bca83a3813b1770cd4e20fd538f13ce7795056",
        "type": "utxo_output",
        "denomination": "BTC",
        "destination": "37G32tDFSUekLXjm4ihC5AjM2ufoAnY5p8",
        "meta": {
            "index": 0
        },
        "date": 1652283133,
        "amount": 363755,
        "decimals": 8
    },
    {...more events...}
]

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
BitcoinMainnet
Testnet
bitcoin/mainnet
bitcoin/testnet
Bitcoin CashMainnet
Testnet
bitcoincash/mainnet
bitcoincash/testnet
LitecoinMainnet
Testnet
litecoin/mainnet
litecoin/testnet

GET Transaction Confirmations by Hash (V1)

https://ubiquity.api.blockdaemon.com/v1/{protocol}/{network}/tx/{id}/confirmations

Returns the number of transaction confirmations by a given transaction hash.

Developer documentation: GET Transaction Confirmations by Hash (V1)
Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • litecoin/mainnet

It is also is required to add a transaction hash, e.g.:

  • 0c8dee3953d6cbae771815ba285856a30e2da0ee0b12e2e2c85d5be51a70e0ed

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
BitcoinMainnet
Testnet
bitcoin/mainnet
bitcoin/testnet
Bitcoin CashMainnet
Testnet
bitcoincash/mainnet
bitcoincash/testnet
LitecoinMainnet
Testnet
litecoin/mainnet
litecoin/testnet
TerraMainnet
Testnet
terra/mainnet
terra/testnet
TezosMainnettezos/mainnet

GET All Transactions (V1)

https://ubiquity.api.blockdaemon.com/v1/{protocol}/{network}/txs

Returns all transactions in the network, starting with the latest one.

Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • stellar/mainnet

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
AlgorandMainnetalgorand/mainnet
BitcoinMainnet
Testnet
bitcoin/mainnet
bitcoin/testnet
Bitcoin CashTestnetbitcoincash/testnet
LitecoinMainnet
Testnet
litecoin/mainnet
litecoin/testnet
StellarMainnetstellar/mainnet
TezosMainnettezos/mainnet
XRPMainnetxrp/mainnet

Query Parameters

To query particular assets, use the following parameter:

  • parameter: assets
  • value: an asset path or a comma-separated list of paths

You can specify a token, or a native coin, e.g.:

  • XLM (native)
    stellar/native/xlm
  • AQUA
    stellar/credit_alphanum4/aqua
  • BTCLN
    stellar/credit_alphanum12/btcln

See also: Available Currencies and Tokens

To set the sort order, use:

  • parameter: order
  • value: asc / desc

To set the maximum number of transactions returned on one page, use:

  • parameter: limit
  • value: 25 by default, up to 100

To get the next page, use:

  • parameter: continuation
  • value: returned in the continuation field

Example Queries

The following queries provide useful examples for GET All Transactions (V1).

To get all Stellar Mainnet transactions, use the following:

https://ubiquity.api.blockdaemon.com/v1/stellar/mainnet/txs

To get all AQUA transactions in Stellar Mainnet, use the following:

https://ubiquity.api.blockdaemon.com/v1/stellar/mainnet/txs?assets=stellar/credit_alphanum4/aqua

To get all AQUA and BTCLN transactions in Stellar Mainnet, use the following:

https://ubiquity.api.blockdaemon.com/v1/stellar/mainnet/txs?assets=stellar/credit_alphanum4/aqua,stellar/credit_alphanum12/btcln

GET Transaction by Hash (V2)

https://ubiquity.api.blockdaemon.com/v2/{protocol}/{network}/tx/{id}

Returns details of a transaction by a given transaction hash.

Developer documentation: GET Transaction by Hash (V2)
Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • ethereum/mainnet

It is also is required to add a transaction hash, e.g.:

  • 0x7bf9c72babc58abc5ec8a40c8740198e8d207da6feefc18d8477886a1e3073d7

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
AlgorandMainnetalgorand/mainnet
BitcoinMainnetbitcoin/mainnet
EthereumMainnetethereum/mainnet
PolkadotMainnetpolkadot/mainnet
StellarMainnetstellar/mainnet
XRPMainnetxrp/mainnet

GET All Transactions (V2)

https://ubiquity.api.blockdaemon.com/v2/{protocol}/{network}/txs

Returns all transactions in the network, starting with the latest one.
Developer documentation: GET All Transactions (V2)
Learn how to authorize your request: Authentication Guide

Path Parameters

You should specify a protocol and a network as path parameters, e.g.:

  • stellar/mainnet

Supported Protocols and Networks

Here is a full list of supported protocols and networks with their path parameters:

ProtocolNetworkPath parameters
AlgorandMainnetalgorand/mainnet
BitcoinMainnetbitcoin/mainnet
DiemMainnetdiem/mainnet
EthereumMainnetethereum/mainnet
PolkadotMainnetpolkadot/mainnet
StellarMainnetstellar/mainnet
XRPMainnetxrp/mainnet

Query Parameters

To query particular assets, use the following parameter:

  • parameter: assets
  • value: an asset path or a comma-separated list of paths

You can specify a token, or a native coin, e.g.:

  • XLM (native)
    stellar/native/xlm
  • AQUA
    stellar/credit_alphanum4/aqua
  • BTCLN
    stellar/credit_alphanum12/btcln

See also: Available Currencies and Tokens

To set the sort order, use:

  • parameter: order
  • value: asc / desc

To set the maximum number of transactions returned on one page, use:

  • parameter: limit
  • value: 25 by default, up to 100

To get the next page, use:

  • parameter: continuation
  • value: returned in the continuation field

Example Queries

The following queries provide useful examples for GET All Transactions (V2).

To get all Stellar Mainnet transactions, use the following:

https://ubiquity.api.blockdaemon.com/v2/stellar/mainnet/txs

To get all AQUA transactions in Stellar Mainnet, use the following:

https://ubiquity.api.blockdaemon.com/v2/stellar/mainnet/txs?assets=stellar/credit_alphanum4/aqua

To get all AQUA and BTCLN transactions in Stellar Mainnet, use the following:

https://ubiquity.api.blockdaemon.com/v2/stellar/mainnet/txs?assets=stellar/credit_alphanum4/aqua,stellar/credit_alphanum12/btcln

We don't support Internet Explorer

Please use Chrome, Safari, Firefox, or Edge to view this site.