Skip to main content

initializeSolana()

function initializeSolana(
options,
bitcoinRpc,
network,
storageCtor): ChainData<SolanaChainType>;

Defined in: atomiq-chain-solana/src/solana/SolanaInitializer.ts:98

Initialize Solana chain integration

Parameters

ParameterTypeDescription
optionsSolanaSwapperOptionsOptions for initializing the Solana chain
bitcoinRpcBitcoinRpc<any>Bitcoin RPC to use for bitcoin read access
networkBitcoinNetworkBitcoin network to use - determines Solana program addresses to use by default
storageCtor<T>(name) => IStorageManager<T>Storage constructor used to create storage backend for ephemeral data submission accounts, i.e. accounts that are used to submit large amount of data to an instruction that would otherwise be bigger than the transaction size limit - used for submitting bitcoin transaction proofs for PrTLC swaps

Returns

ChainData<SolanaChainType>