Skip to main content
Please read about the general concepts of Smart Deposit Addresses before continuing here.
Please note that your projectIdneeds to be whitelisted before you can start using our SDAs. To request whitelisting, please contact us at [email protected]

Using the SDK wrappers

The SDK provides wrappers around the API calls to manage Smart Deposit Addresses. Those wrappers are available under sdk.api.depositAddresses.

Examples

Find supported chains
const depositAddresses = await sdk.api.depositAddresses.getSupportedChains()
// Result:
['ETHEREUM', ...]
Set up a new Smart Deposit Address
const depositAddresses = await sdk.api.depositAddresses.create({
  depositChains: ['ETHEREUM'],
  destinationChain: 'BASE',
  destinationAddress: '0x123...',
})
// Result:
{
  depositAddress: '0x457...',
  depositChain: 'ETHEREUM',
  destinationChain: 'BASE',
  destinationAddress: '0x123...',
  supportedTokens: [{symbol: 'USDT', address: '0x789...'}],
  isActive: true,
}
Check the status of a Smart Deposit Address
// Same result as the create function above
const status = await sdk.api.depositAddresses.getStatus({
  depositAddress: '0x123...',
  depositChain: 'ETHEREUM',
})
Activate an existing Smart Deposit Address
await sdk.api.depositAddresses.activate({
  depositAddress: '0x123...',
  depositChain: 'ETHEREUM',
})