Skip to main content

Method Signature

align.crossChain.createPermanentRouteAddress(
  customerId: string,
  data: CreatePermanentRouteRequest
): Promise<PermanentRouteAddress>

Parameters

customerId
string
required
Customer identifier
destination_network
string
required
Destination blockchain network
destination_token
string
required
Token to send on destination chain
destination_address
string
required
Wallet address to receive funds on destination chain

Example

// Create a route: anything sent to the generated addresses
// will be bridged to Polygon automatically
const route = await align.crossChain.createPermanentRouteAddress(customerId, {
  destination_network: "polygon",
  destination_token: "usdc",
  destination_address: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
});

console.log(
  `Ethereum Deposit Address: ${route.route_chain_addresses.ethereum?.address}`
);
// Send funds to this address to trigger automatic bridging
Use permanent routes for recurring bridge operations like salary payments or automated treasury management.