Solana
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 - 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 onchain programs and token bridge.
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, this means a wormhole formatted address is the base58 decoded address.
e.g. worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth
=> 0x0e0a589a41a55fbd66c52a475f2d92a6d3dc9b4747114cb9af825a98b545d3ce
Emitter
The emitter address on Solana chains is a Program Derived Address which is derived by the application, normalized to the wormhole address format.
The application dev chooses whether this is a consistent address over time or changes. We strongly recommend making it consistent.
Solana
The contract addresess for testnet
are on the Solana devnet
Ecosystem
Wormhole Details
Name:
solana
Chain ID:
1
Contract Source: No source file, update here
Consistency Levels
The options for consistencyLevel (i.e finality) are:
Level | Value |
---|---|
Confirmed | 0 |
Finalized | 1 |
For more information see https://docs.solana.com/cluster/commitments
Mainnet Contracts (Mainnet Beta
- 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
)
Mainnet Beta
- 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
)Type | Contract |
---|---|
Core |
|
Token Bridge |
|
NFT Bridge |
|
Testnet Contracts (Devnet
- EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG
)
Devnet
- EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG
)Type | Contract |
---|---|
Core |
|
Token Bridge |
|
NFT Bridge |
|
Local Network Contract
Type | Contract |
---|---|
Core |
|
Token Bridge |
|
NFT Bridge |
|
Pythnet
Ecosystem
Wormhole Details
Name:
pythnet
Chain ID:
26
Contract Source: No source file, update here
Mainnet Contracts
Type | Contract |
---|---|
Core |
|
Token Bridge | N/A |
NFT Bridge | N/A |
Testnet Contracts
Type | Contract |
---|---|
Core |
|
Token Bridge | N/A |
NFT Bridge | N/A |
Local Network Contract
Type | Contract |
---|---|
Core | N/A |
Token Bridge | N/A |
NFT Bridge | N/A |
Last updated