Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 528 Bytes

File metadata and controls

30 lines (21 loc) · 528 Bytes

Ledger.GetTransaction Method

Gets transaction by transaction hash.

Namespace:Neo.SmartContract.Framework.Native

Assembly: Neo.SmartContract.Framework

Syntax

public static extern Transaction GetTransaction(UInt256 hash);

Parameter:

  • hash: The hash of the queried transaction

Example

public class Contract1 : SmartContract.Framework.SmartContract
{
    public static void Test(UInt256 hash)
    {
        var tx = Ledger.GetTransaction(hash);
    }
}

Back