Skip to main content

Which address to approve

The /getAction response contains a tx.to address. This address is the spender for the token approval and the target of the transaction. Always read tx.to from the response. Do not hardcode an address. Some chains list two addresses. The address that a route uses can differ between requests, and Swaps can deploy new versions.

Addresses by chain