githubEdit

Legacy SDK

Many applications using wormhole may require a frontend to interact with the underlying smart contracts.

Wormhole provides an SDK with utilities for developers that includes:

  • Tools for parsing VAAs and other Wormhole structures.

  • Methods for interacting with the Token and NFT bridges.

  • Methods for submitting messages and parsing Wormhole contract output.

Installation

The SDK can currently be found in the core wormhole repository herearrow-up-right and is available on npmarrow-up-right.

The SDK can be installed using npm:

npm i @certusone/wormhole-sdk

Configuration

These RPC nodes are maintained by the Guardians to help fetch VAAs and query the Wormhole network.

Mainnet Guardian RPC

const MAINNET_GUARDIAN_RPC: string[] =  [
    "https://api.wormholescan.io", // Explorer offers a guardian equivalent endpoint for fetching VAAs
    "https://wormhole-v2-mainnet-api.mcf.rocks",
    "https://wormhole-v2-mainnet-api.chainlayer.network",
    "https://wormhole-v2-mainnet-api.staking.fund",
]

Testnet Guardian RPC

Testnet Guardian Public Key

Documentation

The typedoc for the SDK is available herearrow-up-right

Last updated

Was this helpful?