ensure_fee_account

function ensure_fee_account(custom_account_id: byte_array?, blockchain_rid: byte_array): account(source)

Returns the fee account for a chain, creating it if needed. This function should not normally be used, ensure_chain_fee_account should be preferred.

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

blockchain_rid

the ID of the blockchain the pool account represents. It will normally be this chain's ID

See also

ensure_chain_fee_account

ensure_chain_fee_account