# before_init_transfer · FT4 Rell API · Chromia Docs (concept)

> @extendable function before_ init_ transfer(sender: account , recipient_ id: byte_ array, asset: asset , amount: big_ integer, hops: list<byte_ array>, dea

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.crosschain/before_init_transfer/

FUNCTION

# before\_init\_transfer

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

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/crosschain/extensions.rell#lines-19)

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

This allows, for example, to check that any condition is met before 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 is transferring the tokens
* **recipient\_id** — the ID of the recipient account on the end chain
* **asset** — the asset to be transferred
* **amount** — the amount to be transferred
* **hops** — the IDs of the chains this transfer will go through
* **deadline** — a timestamp after which the transfer can only be recalled

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.crosschain/before_init_transfer.html)Generated API reference, mirrored from the live docs
