avax.getAtomicTx

Retrieve a transaction by its ID, returning the transaction in the format specified by the encoding parameter.

Description

Gets a transaction by its ID. Optional encoding parameter to specify the format for the returned transaction. Can only be hex when a value is provided.

Signature:

avax.getAtomicTx({  
    txID: string,  
    encoding: string, //optional  
}) -> {  
    tx: string,  
    encoding: string,  
    blockHeight: string  
}

Request:

  • txID is the transaction ID. It should be in cb58 format.
  • encoding is the encoding format to use. Can only be hex when a value is provided.

Response:

  • tx is the transaction encoded to encoding.
  • encoding is the encoding.
  • blockHeight is the height of the block which the transaction was included in.

Language
Authorization
Header
Click Try It! to start a request and see the response here!