⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST settxfee

dropdown

方法 RPC settxfee 例如 Bitcoin (BTC)

POST settxfee

方法不允许

为这个钱包设置每 kB 的交易费用。覆盖全局 -paytxfee 命令行参数。

可以通过传递 0 作为费用来停用。在这种情况下,将默认使用自动费用选择。

Parameters

amount - 数字或字符串,必填

BTC/kvB 交易费用

Request

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}