transfer_action

function transfer_action(account: account, strategy_params_gtv: gtv)(source)

The action for the subscription _strategy. Transfers the funds to the account, paying the fee and creating a subscription entity for the given account.

Throws "FORBIDDEN ASSET" if the asset:

  • cannot be used to pay the fee, or

  • is not found.

Throws if the transfer cannot be executed. Common cases are:

  • an account with the fee account ID exists, but it's not of transfer.ACCOUNT_TYPE_FEE

Throws if the chain configuration cannot be parsed.

Parameters

account

the account that was registered

strategy_params_gtv

the parameters for the ras_transfer_subscription operation, GTV-encoded