Skip to content

Get a proof for a transaction in a block.

GET
/v2/blocks/{round}/transactions/{txid}/proof
round
required
integer

A round number.

txid
required
string
/[A-Z0-9]+/

The transaction ID for which to generate a proof.

hashtype
string
Allowed values: sha512_256 sha256

The type of hash function used to create the proof, must be one of:

  • sha512_256
  • sha256
format
string
Allowed values: json msgpack

Configures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

Proof of transaction in a block.

Proof of transaction in a block.

object
hashtype
required

The type of hash function used to create the proof, must be one of:

  • sha512_256
  • sha256
string
Allowed values: sha512_256 sha256
idx
required

Index of the transaction in the block’s payset.

integer
proof
required

Proof of transaction membership.

string format: byte
/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
stibhash
required

Hash of SignedTxnInBlock for verifying proof.

string format: byte
/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
treedepth
required

Represents the depth of the tree that is being proven, i.e. the number of edges from a leaf to the root.

integer

Malformed round number or transaction ID

An error response with optional data field.

object
data
object
message
required
string

Invalid API token

An error response with optional data field.

object
data
object
message
required
string

Non-existent block or transaction

An error response with optional data field.

object
data
object
message
required
string

Internal error, including protocol not supporting proofs.

An error response with optional data field.

object
data
object
message
required
string

Unknown error