LogoLogo
  • Introduction
  • Quick Start
    • Developing Cross Chain Dapps
      • Standard Relayer
      • Specialized Relayer
    • Tutorials
      • Hello Wormhole
        • Hello Wormhole Explained
        • Beyond Hello Wormhole
      • Hello Token
      • CCTP
        • USDC Transfers With Connect SDK
      • Simple Relayer
        • Advanced Relayer Example
    • Demos
    • Wormhole Connect: Bridging Made Easy
  • Explore Wormhole
    • Architecture
    • Security
    • Core Contracts
    • Guardians
    • VAAs
    • Relayers
    • Spy
    • Gateway
      • Onboarding
  • Reference
    • Constants Reference
    • Development Environment
      • Tilt
      • Tooling
    • Blockchain Platforms
      • Algorand
      • Aptos
      • CosmWasm
      • EVM
        • Relayer
      • Near
      • Solana
      • Sui
    • API Docs
      • Wormholescan API
    • SDK Docs
      • Legacy SDK
    • CLI Docs
    • Glossary
  • Wormhole Connect
    • Overview
    • Routes
    • Features
    • Configuration
  • Native Token Transfers
    • Overview
      • System Components
      • Deployment Models
    • Deployment
      • Installation
      • Deploy to EVM
      • Deploy to Solana
      • Post Deployment
    • Configuration
      • Rate Limiting
      • Access Control
    • Security
    • Custom Transceivers
    • Architecture
      • EVM Message Lifecycle
      • Solana Message Lifecycle
  • Queries
    • Overview
    • Getting Started
    • FAQs
  • MultiGov
    • Overview
    • Getting Started
    • Deployment
      • Configuration
    • Upgrading
    • Architecture
    • Guides
    • FAQs
  • External Links
    • Explorer
    • Ecosystem
    • Guardian Dashboard
    • Portal Bridge Docs
    • Discord
    • Twitter
    • Github
Powered by GitBook
On this page
  • Installation
  • Configuration
  • Mainnet Guardian RPC
  • Testnet Guardian RPC
  • Testnet Guardian Public Key
  • Documentation

Was this helpful?

Edit on GitHub
  1. Reference
  2. SDK Docs

Legacy SDK

Last updated 1 year ago

Was this helpful?

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 and is available on .

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

const TESTNET_GUARDIAN_RPC: string[] =  [
    "https://api.testnet.wormholescan.io", // Explorer offers a guardian equivalent endpoint for fetching VAAs
]

Testnet Guardian Public Key

const TESTNET_GUARDIAN_PUBKEY: string = "0x13947Bd48b18E53fdAeEe77F3473391aC727C638"

Documentation

The typedoc for the SDK is available

here
npm
here