Show / Hide Table of Contents

Block.GetTransactions Method ()

Returns all the transactions in the current block.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public extern Neo.SmartContract.Framework.Services.Neo.Transaction[] GetTransactions()

Return Value: Transaction array as Transaction[].

Example

public class Contract1: SmartContract
{
     public static void Main()
     {
         Block block = Blockchain.GetBlock(997027);
         Transaction[] txs = block.GetTransactions();
     }
}

Back