BTB
/

Stargate V2

Bridgewebsite
Cross-chain liquidity bridge on LayerZero V2 for same-asset transfers (USDC, USDT, ETH and others): each asset has a StargatePool (native chains) or StargateOFT (Hydra chains) contract per chain implementing the LayerZero IOFT interface. An agent quotes with quoteOFT/quoteSend and bridges with send(), choosing taxi (immediate) or bus (batched, cheaper) mode.

What you can do

bridge USDC/USDT (taxi, immediate)Move an ERC-20 stablecoin to the same asset on another chain1) Pick the source pool (e.g. StargatePoolUSDC on Arbitrum) and dstEid (e.g. 30184 Base). 2) sendParam = (dstEid, bytes32(recipient), amountLD, amountLD, 0x, 0x, 0x). 3) eth_call quoteOFT(sendParam); set minAmountLD = receipt.amountReceivedLD minus slippage; check amountLD <= limit.maxAmountLD. 4) fee = quoteSend(sendParam, false). 5) token.approve(pool, amountLD). 6) pool.send(sendParam, (fee.nativeFee, 0), refundAddress) with value = fee.nativeFee. 7) Track delivery by the tx hash on LayerZero Scan (layerzeroscan.com).
bridge ETHMove native ETH between ETH-pool chains (Ethereum, Arbitrum, Optimism, Base, Linea, ...)Same as above on StargatePoolNative (token() = address(0)), no approval; value = fee.nativeFee + amountLD.
bridge by bus (cheaper, batched)Lower fee, delivery waits for the busUse oftCmd = 0x00 (bytes(1)) in SendParam; quoteSend returns the bus fare. Funds are debited instantly on the source chain but are delivered when the bus to dstEid is driven (when full, on schedule, or when someone pays driveBus). Bus mode does not support composeMsg. Use sendToken() to get the ticketId and compare with TokenMessaging.busQueues(dstEid).nextTicketId.
bridge to a contract with a follow-up call (compose)Trigger logic on the destinationTaxi mode only: set composeMsg and add an lzCompose executor option (gas) in extraOptions via LayerZero OptionsBuilder; the receiver must implement ILayerZeroComposer.lzCompose.
provide liquidityEarn fees as an LPapprove pool, then pool.deposit(receiver, amountLD) (value = amountLD for native pool); withdraw with pool.redeem(amountLD, receiver), limited by redeemable(owner).
Same-asset only: USDC bridges to USDC, ETH to ETH. Not every asset exists on every chain (e.g. no ETH pool on BSC or Polygon); check the metadata API or quoteOFT before sending.
Fees: a LayerZero messaging fee in native gas (quoteSend, paid as msg.value; overpaid value is refunded to refundAddress) plus a dynamic protocol fee or rebate on the amount, set per pathway by the AI Planning Module (see quoteOFT oftFeeDetails). Quotes go stale with gas prices; quote right before sending.
Delays: taxi is usually minutes (waits for source-chain finality and DVN verification); bus mode can take much longer because delivery waits for the bus to be driven. Source-chain debit is final immediately ('instant guaranteed finality').
Transfer size is capped by the pathway's credits (quoteOFT limit.maxAmountLD); larger sends revert. Amounts are truncated to 6 shared decimals.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
StargatePoolNative (ETH, LayerZero eid 30101)bridge on ethereum0x77b2043768d28E9C9aB44E1aBfC95944bcE57931
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge ETH: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee + amountLD (this pool's token() is address(0), so the ETH being bridged is sent as value; no approval). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDC (USDC, LayerZero eid 30101)bridge on ethereum0xc026395860Db2d07ee33e05fE50ed7bD583189C7
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDT (USDT, LayerZero eid 30101)bridge on ethereum0x933597a323Eb81cAe705C5bC29985172fd5A3973
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDT: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDT first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30101)bridge on ethereum0x6d6620eFa72948C5f68A3C8646d58C00d3f4A980
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolUSDC (USDC, LayerZero eid 30102)bridge on bsc0x962Bd449E630b0d928f308Ce63f1A21F02576057
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 18-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDT (USDT, LayerZero eid 30102)bridge on bsc0x138EB30f73BC423c6455C53df6D89CB01d9eBc63
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDT: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDT first (amount in 18-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30102)bridge on bsc0x6E3d884C96d640526F273C61dfcF08915eBd7e2B
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolUSDC (USDC, LayerZero eid 30106)bridge on avalanche0x5634c4a5FEd09819E3c46D86A965Dd9447d86e47
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDT (USDT, LayerZero eid 30106)bridge on avalanche0x12dC9256Acc9895B076f6638D628382881e62CeE
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDT: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDT first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30106)bridge on avalanche0x17E450Be3Ba9557F2378E20d64AD417E59Ef9A34
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolUSDC (USDC, LayerZero eid 30109)bridge on polygon0x9Aa02D4Fae7F58b8E8f34c66E756cC734DAc7fe4
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30109)bridge on polygon0x6CE9bf8CDaB780416AD1fd87b318A077D2f50EaC
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolNative (ETH, LayerZero eid 30110)bridge on arbitrum0xA45B5130f36CDcA45667738e2a258AB09f4A5f7F
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge ETH: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee + amountLD (this pool's token() is address(0), so the ETH being bridged is sent as value; no approval). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDC (USDC, LayerZero eid 30110)bridge on arbitrum0xe8CDF27AcD73a434D661C84887215F7598e7d0d3
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30110)bridge on arbitrum0x19cFCE47eD54a88614648DC3f19A5980097007dD
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolNative (ETH, LayerZero eid 30111)bridge on optimism0xe8CDF27AcD73a434D661C84887215F7598e7d0d3
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge ETH: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee + amountLD (this pool's token() is address(0), so the ETH being bridged is sent as value; no approval). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDC (USDC, LayerZero eid 30111)bridge on optimism0xcE8CcA271Ebc0533920C83d39F417ED6A0abB7D0
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30111)bridge on optimism0xF1fCb4CBd57B67d683972A59B6a7b1e2E8Bf27E6
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolNative (ETH, LayerZero eid 30184)bridge on base0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge ETH: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee + amountLD (this pool's token() is address(0), so the ETH being bridged is sent as value; no approval). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
StargatePoolUSDC (USDC, LayerZero eid 30184)bridge on base0x27a16dc786820B16E5c9028b75B99F6f604b5d26
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge USDC: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee only; approve this pool for USDC first (amount in 6-decimal base units). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30184)bridge on base0x5634c4a5FEd09819E3c46D86A965Dd9447d86e47
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.
StargatePoolNative (ETH, LayerZero eid 30183)bridge on linea0x81F6138153d473E8c5EcebD3DC8Cd4903506B075
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge ETH: send(SendParam(uint32 dstEid, bytes32 to, uint256 amountLD, uint256 minAmountLD, bytes extraOptions, bytes composeMsg, bytes oftCmd), MessagingFee(uint256 nativeFee, uint256 lzTokenFee), address refundAddress). dstEid = LayerZero V2 endpoint ID of the destination (30101 Ethereum, 30102 BSC, 30106 Avalanche, 30109 Polygon, 30110 Arbitrum, 30111 Optimism, 30184 Base, 30183 Linea). to = recipient left-padded to bytes32. oftCmd = 0x (empty) for taxi (immediate), 0x00 (bytes(1)) for bus (batched, cheaper). extraOptions/composeMsg = 0x unless composing. Set minAmountLD from quoteOFT receipt.amountReceivedLD (minus your slippage). msg.value = MessagingFee.nativeFee + amountLD (this pool's token() is address(0), so the ETH being bridged is sent as value; no approval). Returns (MessagingReceipt(bytes32 guid, uint64 nonce, MessagingFee fee), OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD)).
write sendToken((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Same arguments and value as send(), but also returns the bus Ticket(uint72 ticketId, bytes passengerBytes) when riding the bus. Use it if you want to track or drive the bus yourself.
read quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))
Returns (OFTLimit(uint256 minAmountLD, uint256 maxAmountLD) limit, OFTFeeDetail(int256 feeAmountLD, string description)[] fees, OFTReceipt(uint256 amountSentLD, uint256 amountReceivedLD) receipt). maxAmountLD is capped by the pathway's credits; feeAmountLD > 0 is a fee, < 0 a reward. Use receipt.amountReceivedLD as minAmountLD.
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
Returns MessagingFee(uint256 nativeFee, uint256 lzTokenFee) for the given SendParam (second arg false = pay in native gas). Call right before send(): quotes go stale with gas prices. For bus mode this returns the bus fare.
read token()
Underlying token address; address(0) means native ETH.
read approvalRequired()
True if the caller must approve this contract before send() (ERC-20 pools).
read sharedDecimals()
Shared decimals used on the wire (6). Amounts are truncated to this precision (dust below it is not sent).
write deposit(address,uint256)
Add liquidity: deposit(receiver, amountLD) mints LP tokens (lpToken()) to receiver. For the native pool send amountLD as value.
write redeem(uint256,address)
Withdraw liquidity on this chain: redeem(amountLD, receiver) burns LP and returns the asset. Limited by redeemable(owner) and local credits.
read redeemable(address)
How much of an owner's LP can be redeemed locally right now (amountLD).
read tvl()
Total value locked (LP-backed liquidity) in local decimals.
read poolBalance()
Token balance held by the pool in local decimals.
read lpToken()
LP token address for this pool.
TokenMessaging (LayerZero eid 30183)bridge on linea0x5f688F563Dc16590e570f97b542FA87931AF2feD
read quoteRideBus(uint32,bool)
Bus fare to dstEid: quoteRideBus(dstEid, nativeDrop) returns MessagingFee(nativeFee, lzTokenFee). The pool's quoteSend already calls this for bus sends.
read quoteTaxi((address,uint32,bytes32,uint64,bytes,bytes),bool)
Low-level taxi quote: TaxiParams(address sender, uint32 dstEid, bytes32 receiver, uint64 amountSD, bytes composeMsg, bytes extraOptions), payInLzToken. Prefer the pool's quoteSend.
read busQueues(uint32)
Bus state for dstEid: (uint8 maxNumPassengers, uint80 busFare, uint80 busAndNativeDropFare, uint16 qLength, uint72 nextTicketId). Your bus has left when nextTicketId > your ticketId.
read quoteDriveBus(uint32,bytes)
Fee to drive (dispatch) the bus to dstEid now for the given encoded passengers.
write driveBus(uint32,bytes)
Dispatch the queued bus to dstEid immediately by paying the remaining fare (msg.value from quoteDriveBus). Optional: buses are also driven by the planner when full or on schedule.