FUNCTION

ensure_chain_fee_account

function ensure_chain_fee_account(custom_account_id: byte_array?): account

Returns the fee account for this chain, creating it if needed.

Can only be called from an operation.

Throws if custom_account_id is not null, but the account specified does not exist.

Parameters

  • custom_account_id — the ID of the fee account that should be used for this chain, or null if the account can be generated automatically
© 2024 Chromia