FUNCTION

after_init_transfer

@extendable function after_init_transfer(sender: account, recipient_id: byte_array, asset: asset, amount: big_integer, hops: list<byte_array>, deadline: integer, pending_transfer: pending_transfer)

Extendable function that allows the developer to add more functionality to the init_transfer function, after the transfer is initialised.

This allows, for example, to check that any condition is met after the transfer is initialised.

If this function throws, the transfer will not be initialized.

Throws when any extension of this function throws.

Parameters

  • sender — the account that has transferred the tokens
  • recipient_id — the ID of the recipient account on the end chain
  • asset — the asset that was transferred
  • amount — the amount that was transferred
  • hops — the IDs of the chains this transfer will go through
  • deadline — a timestamp after which the transfer can only be recalled
© 2024 Chromia