@mak201010/wormhole-connect
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
 )

Readme

Keywords

none

Package Sidebar

Install

npm i @mak201010/wormhole-connect

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

6.92 MB

Total Files

1514

Last publish

Collaborators

  • ahsan_khan