sendrawtransaction

BitcoinC1

Submits a fully-signed, serialized transaction to the Bitcoin network. Returns the txid on acceptance; signing is done client-side, keys never leave your infrastructure.

Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpc

Parameters

NameTypeDescription
hexstringstringThe signed raw transaction hex.

Returns

string — the transaction id (txid).

Request

curl https://api.1st-node.com/v1/bitcoin/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sendrawtransaction",
  "params": ["0200000001abcd…"]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sendrawtransaction",
  "params": ["0200000001abcd…"]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "6a9013b8684862e9…"
}
More transactions methods on Bitcoin

Bitcoin API

常见问题

Do you hold my keys?

No — the transaction is signed client-side; only the signed hex is broadcast.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥