Skip to content

Solana

This page includes details for working with the Solana environment chains.

Developer Tools

To develop contracts for Solana, you'll need to have the following tools installed:

  • Cargo, a Rust build tool and package manager
  • Solana CLI tools - CLI tools for working with Solana
  • Anchor - Smart contract development framework

Install Wormhole Rust crates to interact with Solana on-chain programs and Token Bridge.

Warning

Known issues exist with Solana version 1.15 - downgrade to Solana 1.14.14

Addresses

Because Wormhole works with many environments, the Wormhole address format is normalized. For Solana-based chains, a Wormhole formatted address is the base58 decoded address. E.g. worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth becomes 0x0e0a589a41a55fbd66c52a475f2d92a6d3dc9b4747114cb9af825a98b545d3ce

Emitter

The emitter address on Solana chains is a Program-Derived Address derived by the application and normalized to the Wormhole address format.

Note

As the application developer, you decide whether this address will remain consistent over time or change. It is strongly recommended that you keep it consistent.

Solana

Note

The contract addresses for testnet are on the Solana devnet

Ecosystem

Wormhole Details

  • Name: solana
  • Chain ID: 1
  • Contract Source: No source file

Consistency Levels

The options for consistencyLevel (i.e., finality) are:

Level Value
Confirmed 0
Finalized 1

For more information, see the Solana Docs.

Mainnet Beta - 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d

Type Contract
Core worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth
Token Bridge wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb
NFT Bridge WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD

Devnet - EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG

Type Contract
Core 3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5
Token Bridge DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe
NFT Bridge 2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4
Type Contract
Core Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
Token Bridge B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE
NFT Bridge NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA

Pythnet

Ecosystem

Wormhole Details

  • Name: pythnet
  • Chain ID: 26
  • Contract Source: No source file
Type Contract
Core H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU
Token Bridge N/A
NFT Bridge N/A
Type Contract
Core EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z
Token Bridge N/A
NFT Bridge N/A
Type Contract
Core N/A
Token Bridge N/A
NFT Bridge N/A

Got any questions?

Find out more