You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2025. It is now read-only.
var client = new RpcClient(new Uri("http://seed1.neo.org:10332"), null, null, ProtocolSettings.Load("config.json"));
var block = await client.GetBlockAsync("2368604");
foreach (var tx in block.Block.Transactions)
{
Console.WriteLine(tx.Hash.ToString());
}
exception thrown:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Neo.IO.Helper.Write[T](BinaryWriter writer, IReadOnlyCollection`1 value)
at Neo.Network.P2P.Payloads.Signer.Serialize(BinaryWriter writer)
at Neo.IO.Helper.Write[T](BinaryWriter writer, IReadOnlyCollection`1 value)
at Neo.Network.P2P.Payloads.Transaction.Neo.Network.P2P.Payloads.IVerifiable.SerializeUnsigned(BinaryWriter writer)
at Neo.Network.P2P.Helper.CalculateHash(IVerifiable verifiable)
at Neo.Network.P2P.Payloads.Transaction.get_Hash()
Expected behavior
hash returned .. even for witnessrules scope.