gettxfee - Pastel RPC

gettxfee "txid"
Get transaction fee by txid.

Arguments:
1. "txid"  (string, required) transaction id

Returns:
{
    "txid": "txid",                      // transaction id
    "height": <ticket_block_height>,     // block height of the transaction, may be omited if transaction is in mempool only
    "blockHash": <ticket_tx_block_hash>, // block hash of the transaction, may be omited if transaction is in mempool only
    "txFeePat": <ticket_tx_fee_pat>,     // transaction fee in patoshis
    "txFee": <ticket_tx_fee>             // transaction fee in PSL
}

Example:
> pastel-cli gettxfee ""e4ee20e436d33f59cc313647bacff0c5b0df5b7b1c1fa13189ea7bc8b9df15a4""

As json rpc:
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxfee", "params": ["e4ee20e436d33f59cc313647bacff0c5b0df5b7b1c1fa13189ea7bc8b9df15a4"] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node

Addressindex