Relayers are opt-in, audited contracts that can make calls to the Vault on your behalf. They can use the sender’s ERC20 vault allowance, internal balance, or BPTs after being approved.Documentation Index
Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Types of relayers
BalancerRelayer
The BalancerRelayer allows you to execute multiple vault actions in a single transaction by chaining them together. This improves UX by reducing the number of transactions needed for complex operations. Example of chaining multiple actions:PoolCreationHelper
The PoolCreationHelper is a specialized relayer that simplifies pool creation and initial liquidity provision. See the PoolCreationHelper documentation for details. Key features:- Creates and joins pools in a single transaction
- Supports joining WBERA pools with either WBERA or BERA
- Handles both weighted and stable pool creation
Approving a relayer
Before a relayer can act on your behalf, you must approve it using the Vault’ssetRelayerApproval function:
Only approve relayers that have been audited and are part of the official BEX deployment.