Bitcoin Cash
testmempoolaccept40 크레딧
Tests whether raw transaction(s) would be accepted by mempool
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| rawtxs | string[] | Hex-encoded raw transactions to test. Several transactions are tested together as a package (newer versions); older versions allow exactly one. |
| maxfeerate | number | string | Reject 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-bch-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…"
]
]
}'