# Sendrawtransaction

## sendrawtransaction

> Submits a raw transaction (hex-encoded string) to the mempool and broadcasts it to the network.\
> Returns the transaction ID (txid) if accepted.<br>

```json
{"openapi":"3.0.0","info":{"title":"BlockBook RES-API","version":"1.0.0"},"servers":[{"url":"https://btc-testnet.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"SendRawTransactionRequest":{"type":"object","required":["jsonrpc","id","method","params"],"properties":{"jsonrpc":{"type":"string"},"id":{"type":"string"},"method":{"type":"string","enum":["sendrawtransaction"]},"params":{"type":"array","minItems":1,"maxItems":2,"description":"Parameters:\n1. `hexstring` (string, required): The raw transaction in hex format.\n2. `maxfeerate` (number or boolean, optional): Reject transactions with fees higher than this (BTC/KB). Use `false` to disable check.\n","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}}},"SendRawTransactionResponse":{"type":"object","properties":{"result":{"type":"string","description":"Transaction ID (txid) of the submitted transaction"},"error":{"type":"object","nullable":true,"description":"Null if successful; error object if rejected"},"id":{"type":"string","description":"Same ID as in the request"}}}}},"paths":{"/":{"post":{"tags":["sendrawtransaction"],"summary":"sendrawtransaction","description":"Submits a raw transaction (hex-encoded string) to the mempool and broadcasts it to the network.\nReturns the transaction ID (txid) if accepted.\n","operationId":"sendrawtransaction","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendRawTransactionRequest"}}}},"responses":{"200":{"description":"Transaction accepted and broadcasted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendRawTransactionResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```
