ТарифыGitHubКабинет

Dash

testmempoolacceptКредиты: 40

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…"
    ]
  ]
}'