getTransaction
Gets the transaction of the specified transaction hash.
Parameters
1. txid (required)
UInt256
The transaction hash to query.
Returns
Promise<Transaction>
type Transaction = {
hash: UInt256;
size: number;
blockHash: UInt256;
blockTime: number;
confirmations: number;
version: number;
nonce: number;
systemFee: Integer;
networkFee: Integer;
validUntilBlock: number;
sender: UInt160;
signers: Signer[];
attributes: TransactionAttribute[];
script: Base64Encoded;
};Errors
Code
Name
Description
10002
INVALID
The transaction hash is invalid.
10003
NOTFOUND
The transaction does not exist.
10008
RPC_ERROR
The RPC server returned an error.
Example
Request
Response
最后更新于