文档
定价GitHub控制台

Bitcoin Cash

submitpackage80 额度

Submit a package of raw transactions to local mempool

网络: bch

参数

名称类型描述
packagestring[]Hex-encoded raw transactions: unconfirmed parents first and the child last. Parents must not depend on each other.
maxfeeratenumber | stringReject transactions paying more than this feerate, in BTC/kvB. Default is 0.10; 0 accepts any feerate. (可选)
maxburnamountnumber | stringReject if more than this many BTC go to provably unspendable outputs. Default is 0. (可选)

返回值

类型

Object

package_msg (success or a failure reason), tx-results (object keyed by wtxid with txid, vsize, fees { base, effective-feerate, effective-includes } or error, optional other-wtxid) and optional replaced-transactions (txids).

代码示例

curl https://holy-burned-sky-bch-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "submitpackage",
  "params": [
    [
      "0200000001…",
      "0200000001…"
    ]
  ]
}'