estimatefee RPC estimates the transaction fee per kilobyte that needs to be paid for a transaction to be included within a certain number of blocks.
Parameter #1—how many blocks the transaction may wait before being included
|The maximum number of blocks a transaction should have to wait before it is predicted to be included in a block. Has to be between 2 and 25 blocks|
Result—the fee the transaction needs to pay per kilobyte
|The estimated fee the transaction should pay in order to be included within the specified number of blocks. If the node doesn’t have enough information to make an estimate, the value
pai-cli estimatefee 6
Requesting data the node can’t calculate (out of range):
pai-cli estimatefee 100
SetTxFee: sets the transaction fee per kilobyte paid by transactions created by this wallet.