⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST testmempoolaccept

dropdown

方法 RPC testmempoolaccept 例如 Bitcoin Gold (BTG)

POST testmempoolaccept

MEMPOOL将接受MEMPOOL接受测试的返回结果,表明是否原始交易(序列化,编码)将接受。

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

请参阅sendrawtransaction呼叫。

Parameters

rawtxs - json阵列,必需

一系列原始交易的十六进制字符串。 长度必须是现在。

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

拒绝费率高于BTC/KB表示的指定价值的交易

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": [
        {
            "allowed": false,
            "reject-reason": "coinbase",
            "txid": "93b40f33fc7287d7ee6e169647ed0b24966e0a4e79bcae1d764c3bbfa1217470"
        }
    ]
}