Routing Strategy Examples
router (recommended)

Enter a single position from 1 token

In this example, we will have a user or smart contract that has 1 WETH (opens in a new tab) in their Ethereum mainnet wallet, and wants to deposit 1 WETH into Beefy Aura wstETH-ETH (opens in a new tab)


Beefy Aura wstETH-ETH token is multihopping over 4 DeFi protocols

Step 1: Approve

The caller must approve the WETH first on the router so it can execute the bundle of transactions.

Approve: Approve Transaction


curl -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer 1e02632d-6feb-4a75-a157-documentation" \


await ERC20(0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2).approve(address, 5 Ether) // take decimals of the token you're approving into account

Step 2: Execute

Execute: Build actions

We are using the Route endpoint as this it compares the best execution route for token amount out, and gas execution price. For example, it might be better to purchase stEth on a DEX than directly depositing it depending upon the exchange rate of that token on the secondary market.

curl -X 'GET' \
  '' \
  -H 'accept: application/json'

The data value contains the bundle calldata to be submitted to the user.