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キーを取得