Build the Arbitrum tx that completes a USDC deposit to HL.
Takes the EIP-2612 permit signature returned by /deposit and returns
a fully-encoded Bridge2.batchedDepositWithPermit call. The integrator’s
sponsor wallet (sender) broadcasts the returned tx — Compass does not
broadcast and does not hold gas keys.
Documentation Index
Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
Take a user's signed EIP-2612 USDC permit and build an Arbitrum tx that calls Bridge2.batchedDepositWithPermit.
The customer broadcasts the returned tx from their own sponsor wallet — Compass does not hold gas keys (non-custodial).
The user's EOA address on Arbitrum (the permit signer).
USDC amount in raw 6-decimal units, as returned by /deposit.
Permit deadline (unix seconds), as returned in the permit.message from /deposit.
The user's EIP-2612 permit signature (65-byte hex, 0x-prefixed or raw).
Sponsor wallet address that will broadcast the returned tx (used for from and nonce).
Successful Response
Fully-encoded Arbitrum tx that completes a HL Bridge2 deposit.
Broadcast transaction from the sender wallet supplied in the request.
After the receipt confirms, verify a USDC Transfer event was emitted —
Bridge2 can silently no-op without reverting.
Unsigned Arbitrum tx calling Bridge2.batchedDepositWithPermit. Sign and broadcast from sender.
{
"chainId": "0x2105",
"data": "0x1688f0b900000000000000000000000029fcb43b46531bca003ddc8fcb67ffe91900c762000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000675f4a3d",
"from": "0x4A83b4413CF41C3244027e1590E35a0F48403F0c",
"gas": "0x7a120",
"maxFeePerGas": "0x59682f00",
"maxPriorityFeePerGas": "0x3b9aca00",
"nonce": "0x5",
"to": "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",
"value": "0x0"
}