Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.faremeter.xyz/llms.txt

Use this file to discover all available pages before exploring further.

wallet-solana/src

Type Aliases

LocalWallet

LocalWallet = Awaited<ReturnType<typeof createLocalWallet>>
Defined in: packages/wallet-solana/src/index.ts:33 Type representing a local Solana wallet created by createLocalWallet.

Functions

createLocalWallet()

createLocalWallet(network, keypair): Promise<{ network: string; partiallySignTransaction: (tx) => Promise<VersionedTransaction>; publicKey: PublicKey; updateTransaction: (tx) => Promise<VersionedTransaction>; }>
Defined in: packages/wallet-solana/src/index.ts:16 Creates a local Solana wallet from a keypair for signing transactions.

Parameters

network
string Network identifier (e.g., “mainnet-beta”, “devnet”).
keypair
Keypair Solana keypair containing the private key.

Returns

Promise<{ network: string; partiallySignTransaction: (tx) => Promise<VersionedTransaction>; publicKey: PublicKey; updateTransaction: (tx) => Promise<VersionedTransaction>; }> A wallet object that can sign versioned transactions.