Instance Method
submitBlock(hexData:)
Submits a block to the network.
func submitBlock(hexData: String) async throws
Parameters
-
hexData
-
The hex-encoded block data to submit.
Discussion
Important
Not idempotent — a timeout does not mean the operation failed. Do not retry automatically.
Throws
RPCClientError.blockRejected(reason:) if Core returns a rejection string.