TransactionGet()

Retrieve a single transaction

Before calling the function make sure you have the Connector object initialized.

Understanding Connector Object

Function Call

Field

Type

Description

PoolSeq

long

Pool Sequence Number(Round Number)

Index

int

Index number(Transaction number of that particular block)

TransactionGet(424078, 0);

Return value of function: TransactionGetResult

Example

Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.TransactionGetResult txs = connect_.TransactionGet(424078, 0);
Console.WriteLine(txs);

Return value of function: TransactionGetResult

Output of Example

Output is printed via ObjectDumper

{TransactionGetResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success: 0.008740"
  Found: true
  State: TransactionState.INVALID
  RoundNum: 0
  Transaction: {SealedTransaction}
    Id: {TransactionId}
      PoolSeq: 424078
      Index: 0
    Trxn: {Transaction}
      Id: 11
      Source: 
        byte[]
      Target: 
        byte[]
      Amount: {Amount}
        Integral: 50001
        Fraction: 0
      Balance: {Amount}
        Integral: 0
        Fraction: 0
      Currency: 1
      Signature: ...
      SmartContract: null
      Fee: {AmountCommission}
        Commission: 17279
      TimeCreation: 1628252105145
      UserFields: null
      Type: TransactionType.TT_Transfer
      SmartInfo: null
      ExtraFee: null
      PoolNumber: 424078
      UsedContracts: null

Last updated