getTransactionInfo

Gets the details for a transaction, including the fees and virtual machine events for a transaction.

Usage

visionWeb.vs.getTransactionInfo(txId);

Parameters

ParameterDescriptionTypeDefault
txIdTransaction id.string-

Returns

Object

Example

visionWeb.vs.getTransactionInfo("c01bb6832a42129e8da3b05909de5245286bc2fbe2df148713c8f8a39a28c072");
> {
  id: 'c01bb6832a42129e8da3b05909de5245286bc2fbe2df148713c8f8a39a28c072',
  blockNumber: 37259,
  blockTimeStamp: 1608124281000,
  contractResult: [ '' ],
  receipt: { photon_usage: 265 }
}