文档
定价GitHub控制台

Dash

testmempoolaccept40 额度

Tests whether raw transaction(s) would be accepted by mempool

网络: dash

参数

名称类型描述
rawtxsstring[]Hex-encoded raw transactions to test. Several transactions are tested together as a package (newer versions); older versions allow exactly one.
maxfeeratenumber | stringReject transactions paying more than this feerate, in BTC/kvB. Default is 0.10. (可选)

返回值

类型

Object[]

One object per transaction: txid, wtxid, allowed, and when allowed vsize and fees.base (BTC); when rejected, reject-reason. Nothing is added to the mempool.

代码示例

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