Instance Method
block(for:)
The full consensus-serialized block for the given hash.
func block(for hash: Data) async throws -> Block
Parameters
-
hash
-
32-byte block hash in internal byte order.
Return Value
A Block ready to pass to processBlock(_:).
Discussion
Throws
BlockSourceError.notFound if the hash is unknown; BlockSourceError.invalidResponse(_:) if the body doesn’t round-trip through the kernel’s block parser.