<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/RPCClient/submitBlock(hexData:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin9RPCClientC11submitBlock7hexDataySS_tYaKF"
  },
  "title" : "submitBlock(hexData:)"
}
-->

# 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: ``doc://Bitcoin/documentation/Bitcoin/RPCClientError/blockRejected(reason:)`` if Core returns a rejection string.