> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# sendrawtransaction

> Submits a raw transaction to the local node and network.

### Parameters

<ParamField query="chainId" type="string" default="bitcoin-testnet4" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="sendrawtransaction" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["",0]} placeholder="[&#x22;&#x22;,0]" required>
  Parameters: \[hexstring, maxfeerate?].

  Positional parameters for <code>sendrawtransaction</code>:

  <ul>
    <li><code>params\[0]</code>: Raw transaction hex.</li>
    <li><code>params\[1]</code>: Optional max fee rate (BTC/kvB) to reject if exceeded.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="string">
  32 Bytes - Hash of the transaction.
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet4 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "sendrawtransaction",
      "params": [
        "",
        0
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": ""
  }
  ```
</ResponseExample>
