initializeSolana()
function initializeSolana(
options,
bitcoinRpc,
network,
storageCtor): ChainData<SolanaChainType>;
Defined in: atomiq-chain-solana/src/solana/SolanaInitializer.ts:98
Initialize Solana chain integration
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SolanaSwapperOptions | Options for initializing the Solana chain |
bitcoinRpc | BitcoinRpc<any> | Bitcoin RPC to use for bitcoin read access |
network | BitcoinNetwork | Bitcoin 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 |