Skip to content
docs

SolanaConfig

Defined in: wallet-solana/src/types.ts:24

Options for a Solana wallet manager or account: endpoints, network, fee caps, compute budget and the pre-sign checks.

optional allowAuthorityChanges?: boolean

Defined in: wallet-solana/src/types.ts:61

Sign transactions that reassign, allocate or create this wallet’s account under a program, hand away a nonce / token / metadata / group authority, run a token Batch, move lamports to someone else with an instruction that is not a visible transfer (CloseAccount, WithdrawExcessLamports, UnwrapLamports, WithdrawNonceAccount, TransferSolWithSeed), or carry an undecodable System / Token instruction (default false). Applies to sendTransaction / signTransaction; sendSerialized refuses them regardless.


optional allowBurn?: boolean

Defined in: wallet-solana/src/types.ts:52

Allow transfers to the System program / all-zero address (default false).


optional allowDurableNonce?: boolean

Defined in: wallet-solana/src/types.ts:67

Sign durable-nonce transactions (first instruction AdvanceNonceAccount), whose signature never expires: whoever holds it can broadcast it at any later time (default false). Can also be given per call in SolanaWriteOptions.


optional allowForeignFeePayer?: boolean

Defined in: wallet-solana/src/types.ts:50

Sign provider transactions whose fee payer is not this wallet (default false).


optional commitment?: Commitment

Defined in: wallet-solana/src/types.ts:30

Commitment for reads and confirmations. Default confirmed.


optional maxPriorityMicroLamports?: number | bigint

Defined in: wallet-solana/src/types.ts:46

Cap for the auto priority price (micro-lamports/CU, default 5_000_000).


optional minPriorityMicroLamports?: number | bigint

Defined in: wallet-solana/src/types.ts:44

Floor for the auto priority price (micro-lamports/CU, default 0).


optional network?: string

Defined in: wallet-solana/src/types.ts:40

CAIP-2 network suffix; default mainnet genesis hash.


optional priorityFee?: false | PriorityFeeConfig

Defined in: wallet-solana/src/types.ts:42

Compute-budget policy; default {microLamports: 'auto', computeUnitLimit: 'auto'} with a provider. false = no compute-budget instructions.


optional provider?: string | Rpc<SolanaRpcApiForTestClusters> | (string | Rpc<SolanaRpcApiForTestClusters>)[]

Defined in: wallet-solana/src/types.ts:26

RPC url(s) or ready Rpc object(s). A list fails over in order. Omit for an offline (sign-only) wallet.


optional retries?: number

Defined in: wallet-solana/src/types.ts:32

Extra attempts across the provider list after the first failure (default 3).


optional rpcUrl?: string | string[]

Defined in: wallet-solana/src/types.ts:28

Alias of provider.


optional simulate?: boolean

Defined in: wallet-solana/src/types.ts:48

Run simulateTransaction before signing a broadcast (default true with a provider). A failed simulation throws before anything is signed.


optional timeoutMs?: number

Defined in: wallet-solana/src/types.ts:34

Per-request timeout for url providers, in ms (default 15 000). A send that times out is a BroadcastUnknownError.


optional transactionMaxFee?: number | bigint

Defined in: wallet-solana/src/types.ts:38

Max fee (lamports, priority fee included) for sendTransaction / signTransaction.


optional transferMaxFee?: number | bigint

Defined in: wallet-solana/src/types.ts:36

Max fee (lamports, priority fee included) for transfer.