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.1
Example: 0.1
Responses
200
Default Response
application/json
400
Default Response
application/json
401
Unauthorized
application/json
404
Not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
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