SDK Cases
Route and example coverage for the Snowbridge V2 TypeScript SDK.
This page lists the route cases currently covered by the operations testcase matrix in web/packages/operations/src/testcases/testAll.ts.
Ethereum -> Polkadot
Examples covered:
ethereum:1 -> polkadot:1000withDOTethereum:1 -> polkadot:2000withETHethereum:1 -> polkadot:2004withWETHethereum:1 -> polkadot:2030withETHethereum:1 -> polkadot:2034withUSDCethereum:1 -> polkadot:2043withTRACethereum:1 -> polkadot:3369withMYTH
Polkadot -> Ethereum
Examples covered:
polkadot:1000 -> ethereum:1withDOTpolkadot:2000 -> ethereum:1withETHpolkadot:2004 -> ethereum:1withWETHpolkadot:2030 -> ethereum:1withETHpolkadot:2034 -> ethereum:1withUSDCpolkadot:2043 -> ethereum:1withTRACpolkadot:3369 -> ethereum:1withMYTHethereum:1284 -> ethereum:1withWETH
L2 -> Polkadot
Examples covered:
ethereum_l2:10 -> polkadot:1000withETHethereum_l2:42161 -> polkadot:1000withWETHethereum_l2:8453 -> polkadot:1000withUSDC
Polkadot -> L2
Examples covered:
polkadot:1000 -> ethereum_l2:10withETHpolkadot:1000 -> ethereum_l2:42161withWETHpolkadot:1000 -> ethereum_l2:8453withUSDC
Inter-Parachain
Examples covered:
polkadot:1000 -> polkadot:2034withUSDCpolkadot:2034 -> polkadot:1000withUSDC
Registration
Examples covered:
Agent creation with
api.createAgent()Token registration with
api.registerToken()
Common SDK Pattern
Most route cases follow the same pattern:
The returned transfer.tx can then be submitted to the wallet by your application.
Last updated