UNPKG

@hyperlane-xyz/sdk

Version:

The official SDK for the Hyperlane Network

11 lines 387 B
import { Connection } from '@solana/web3.js'; import { ProviderType } from '../ProviderType.js'; export const defaultSolProviderBuilder = (rpcUrls) => { if (!rpcUrls.length) throw new Error('No RPC URLs provided'); return { type: ProviderType.SolanaWeb3, provider: new Connection(rpcUrls[0].http, 'confirmed'), }; }; //# sourceMappingURL=solana.js.map