near-sdk-gr

Economics.accountBalance

accountBalance : () -> Int128.Int128

The current balance of the given account. This includes the attached_deposit that was attached to the transaction.

Returns:

type description
Int128.Int128 The current account balance (a 128-bit integer)

Examples:

Economics.accountBalance()

Economics.accountLockedBalance

accountLockedBalance : () -> Int128.Int128

The current amount of tokens locked due to staking.

Returns:

type description
Int128.Int128 The currently staked account balance (a 128-bit integer)

Examples:

Economics.accountLockedBalance()

Economics.attachedDeposit

attachedDeposit : () -> Int128.Int128

The balance that was attached to the call that will be immediately deposited before the contract execution starts.

Returns:

type description
Int128.Int128 The attached deposit (a 128-bit integer)

Examples:

Economics.accountLockedBalance()

Economics.prepaidGas

prepaidGas : () -> Int64

The amount of gas attached to the call that can be used to pay for the gas fees.

Returns:

type description
Int64 The prepaid gas

Examples:

Economics.prepaidGas()

Economics.usedGas

usedGas : () -> Int64

The gas that was already burnt during the contract execution (cannot exceed prepaidGas)

Returns:

type description
Int64 The used gas

Examples:

Economics.usedGas()