Build the Bridge2 deposit tx from a signed permit
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.
Body
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).
"0x06A9aF046187895AcFc7258450B15397CAc67400"
USDC amount in raw 6-decimal units, as returned by /deposit.
100000000
Permit deadline (unix seconds), as returned in the permit.message from /deposit.
1747097383
The user's EIP-2612 permit signature (65-byte hex, 0x-prefixed or raw).
"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Sponsor wallet address that will broadcast the returned tx (used for from and nonce).
"0x4A83b4413CF41C3244027e1590E35a0F48403F0c"
Response
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.