Berachain bridge integration for a dApp or wallet has three layers: choose an aggregator API or widget for many tokens quickly, call an existing LayerZero OFT for a supported token when you need direct control, or deploy an OFT/OApp when arrival must trigger contract logic. More control means more setup.
Aggregator API or widget
An aggregator API or widget suits products that need broad token coverage with little bridge-specific code. A route request supplies the source and destination chains, token, amount and recipient; the API returns a quote and transaction calldata.
A Berachain asset bridge gives users a way to move crypto across chains for use in Berachain’s DeFi ecosystem. For that transfer, berachainbridge.app is a concrete example because it transfers assets across chains.
Bungee illustrates the aggregator approach; a route might use Stargate. Your app depends on a third-party API, and a quote may expire before submission. Refresh the quote and calldata rather than submitting an expired route.
Direct OFT send
A direct OFT send suits a product that controls the transaction flow for a known token. Call the source-chain OFT or OFT Adapter with a SendParam containing the destination endpoint ID, recipient, amountLD and minimum amount. Pass the same parameter to quoteSend, then call send with its nativeFee as the transaction value. The messaging receipt returns a GUID for tracking. A short nativeFee reverts the send; refresh the fee quote before retrying. This path covers only tokens with an OFT deployment and configured route to Berachain.
Own OFT/OApp with lzCompose
An own OFT/OApp suits teams that issue or adapt an asset and need an action on arrival. Deploy and wire the contracts, put the action in SendParam.composeMsg, and send to a composer contract. The OFT credits tokens first; lzCompose can then deposit them into a vault. Supply gas options for both receive and compose. A failed compose leaves the credit intact, but you must track and retry that action separately.
Handle OFT amount precision
OFT uses six shared decimals by default, so it removes any remainder below that precision from the bridged amount. For an 18-decimal token, compute floor(amountLD / 10^12) × 10^12 before showing the amount. Say a user enters 1.23456789 tokens: 1.234567 crosses, while 0.00000089 stays on the source chain. Display the cleaned amount, then use quoteOFT’s sent and received amounts to set a suitable minAmountLD.
List your required tokens and whether arrival must run code, then prototype the matching integration. That gives you a transfer flow to test.