Mempool Acceptance Test

This endpoint lets you run a mempool acceptance test to check if the mempool will accept the serialized hex-encoded raw transaction

post

Forward to RPC using testmempoolaccept method.

Authorizations
Body
txListstring[]Required

Raw transaction hex to be checked with testmempoolaccept method.

maxFeeRatenumberOptionalDefault: 0.1Example: 0.1
Responses
200

Default Response

application/json
post
POST /v1/rpc/bitcoin/testmempoolaccept HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "txList": [
    "text"
  ],
  "maxFeeRate": 0.1
}
{
  "result": [
    {
      "txid": "text",
      "wtxid": "text",
      "allowed": true,
      "vsize": 1,
      "fees": {
        "base": 1
      },
      "rejectReason": "text",
      "packageError": "text"
    }
  ]
}

Last updated