getTransactionDetails

Query details about a single transaction

Using the L2 txHash (AkashicChain hash), e.g. from the response of payout, get details about the transaction. If you have callbacks enabled on payout, you likely will not need this.

const transaction = await akashicPay.getTransactionDetails('ASe5659e1700b9004ef06a622e49b6d367d3a76d3fed5e7872aaf684b51b824a89')

Return Example

{
  "fromAddress": "TTVkK6hGoAFhALG9NTkUDHjcFFXKmWcScU",
  "toAddress": "TQH8ygbS8BAnzSQ9uxR9vXHJYMQVRvbgPg",
  "layer": TransactionLayer.L1,
  "date": "2024-08-19T10:03:58.649Z",
  "amount": "1.000000",
  "coinSymbol": NetworkSymbol.TRX_SHASTA,
  "status": TransactionStatus.CONFIRMED,
  "txHash": "28a9880ad2ef3b7be1c40763128ec9630ab74e4749a3c81037c3501e4209bfcc",
  "internalFee": {
    "deposit": "0.020000"
  },
  "l2TxnHash": "ASe5659e1700b9004ef06a622e49b6d367d3a76d3fed5e7872aaf684b51b824a89",
 }

Last updated