0.1.0-beta.20 • Published 7 months ago

wormhole-connect-sdk v0.1.0-beta.20

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Wormhole Connect SDK

An SDK that wraps the core Wormhole SDK and provides a convenient API to interact with the Wormhole Token Bridge protocol.

Here is an example showing how to send a token across chains using this SDK:

 const context = new WormholeContext('MAINNET');
 
 // interact easily with any chain!
 // supports EVM, Solana, Terra, etc
 const tokenId = {
   chain: 'ethereum',
   address: '0x123...',
 }

 const receipt = context.send(
   tokenId,
   '10', // amount
   'ethereum', // sending chain
   '0x789...', // sender address
   'moonbeam', // destination chain
   '0x789...', // recipient address on destination chain
 )