📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

bsv
Bitcoin-SV (BSV)

Method: POST testmempoolaccept

dropdown

方法 RPC testmempoolaccept 例如 Bitcoin-SV (BSV)

POST testmempoolaccept

返回内存池验收测试的结果,指示内存池是否会接受原始交易(序列化、十六进制编码)。

这会检查交易是否违反共识或政策规则。

请参阅 sendrawtransaction 调用。

Parameters

rawtxs - json 数组,必需

原始交易的十六进制字符串数组。长度现在必须为 1。

maxfeerate - 数字或字符串,可选,默认=0.10

拒绝费率高于指定值的交易,单位为BTC/kB

Request

curl --location --request POST 'https://bsv.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "testmempoolaccept",
"params": [["rawtxs"], null],
"id": "getblock.io"}'


Response

null