Skip to main content
Persist id together with swig: configure the account with solana: { swig, owner }, and pass the id to account.deploy('solana', solanaChain, { swigId: id }) to create it. The id cannot be recovered from the addresses, so a lost id leaves the Swig uncreatable; mint a new one instead.

Import

Usage

Returns

The 32-byte Swig id as hex, the Swig state account swig, and the asset-holding wallet that receives funds.
`0x${string}`
required
SolanaAddress
required
SolanaAddress
required