Estimate the required fee for a txn to be emitted successfully

Concepts

Behaviour

  • Specifies a number of emitted transactions this hook might emit during execution.

Definition

int64_t etxn_fee_base ( uint32_t count );

Example

int64_t result = etxn_fee_base(2); if (result < 2) rollback("Error reserving!", 16, 1);

Parameters

NameTypeDescription
countuint32_tThe largest number of transactions this hook might emit during the course of one execution.

Return Code

TypeDescription
int64_tThe maximum number of emitted transactions this hook may emit. This will always be the same as the count parameter or an error as below.

If negative, an error:
ALREADY_SET
- The hook already called this function earlier.

TOO_BIG
- The specified number of emitted transactions is too large.