Show / Hide Table of Contents

Block Class

A class representing a block, providing a way to query transactions in a block.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class Block: Header

Methods

Namedescription
GetTransaction(int) Returns the specified transaction within the block
GetTransactionCount() Returns the number of transactions within the block
GetTransactions() Returns all the transactions within the block

Constructor

The Block object is constructed through Blockchain.GetBlock(byte[]) .

The Block object is constructed through Blockchain.GetBlock(uint) .