Function std::tx::tx_tip

pub fn tx_tip() -> Option<u64> 
Expand description

Get the tip for the transaction, if it is set.

Returns

  • [Option] - The tip for the transaction.

Examples

use std::tx::tx_tip;

fn foo() {
    let tip = tx_tip();
    log(tip);
}