Show / Hide Table of Contents

Blockchain.GetHeader Method (uint)

Returns a block header given a block height.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static extern Neo.SmartContract.Framework.Services.Neo.Header GetHeader(uint height)

Parameters: Block Height as an unsigned integer.

Return Value: Header .

Example

public class Contract1: FunctionCode
{
     public static void Main ()
     {
         Header bl = Blockchain.GetHeader(997027);
     }
}

Back