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

> @extendable function before_ crosschain_ balance_ change(sender: account , recipient: account , asset: asset , amount: big_ integer, will_ change_ sender: 

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

FUNCTION

# before\_crosschain\_balance\_change

```signature
@extendable function before_crosschain_balance_change(sender: account, recipient: account, asset: asset, amount: big_integer, will_change_sender: boolean, will_change_recipient: boolean)
```

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

Extendable function that allows the developer to add more functionality to the
`update_balances_if_needed` function, before the balance change is applied.

This allows, for example, to check that any condition is met before the balance change is
applied. Or to modify the balance or amount before it is changed.

If this function throws, the balance change will not be applied.

Throws when any extension of this function throws.

**Parameters**

* **sender** — the account that has transferred the tokens
* **recipient** — the account that will receive the tokens
* **asset** — the asset that was transferred
* **amount** — the amount that was transferred
* **will\_change\_sender** — whether the sender's balance will change
* **will\_change\_recipient** — whether the recipient's balance will change

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