sendrawtransaction

Submits raw transaction (serialized, hex-encoded) to local node and network.

Also see createrawtransaction and signrawtransaction calls.

Arguments:

  1. "hexstring" (string, required) The hex string of the raw transaction)
  2. allowhighfees (boolean, optional, default=false) Allow high fees

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"sendrawtransaction","params":["02000000000101a850a28d6577e1bec.......0900"]}'

Response

[{"txid":"myid","vout":0}]