renew_subscription

@mount("ft4.renew_subscription") operation renew_subscription(asset_id: byte_array?)(source)

Renews the subscription for an account by paying from that account with the given asset.

Must be signed by an auth descriptor with the accounts.AUTH_FLAG_TRANSFER.

Throws "MISSING SUBSCRIPTION" if the account does not have a subscription.

Throws "INPUT ERROR" if the asset cannot be used to pay the fees.

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

  • the account does not have enough funds

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

Parameters

asset_id

the asset that should be used to pay the fee, or null for the same one that was used in the first payment.