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.
Properties
Section titled “Properties”allowAuthorityChanges?
Section titled “allowAuthorityChanges?”
optionalallowAuthorityChanges?: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.
allowBurn?
Section titled “allowBurn?”
optionalallowBurn?:boolean
Defined in: wallet-solana/src/types.ts:52
Allow transfers to the System program / all-zero address (default false).
allowDurableNonce?
Section titled “allowDurableNonce?”
optionalallowDurableNonce?: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.
allowForeignFeePayer?
Section titled “allowForeignFeePayer?”
optionalallowForeignFeePayer?:boolean
Defined in: wallet-solana/src/types.ts:50
Sign provider transactions whose fee payer is not this wallet (default false).
commitment?
Section titled “commitment?”
optionalcommitment?:Commitment
Defined in: wallet-solana/src/types.ts:30
Commitment for reads and confirmations. Default confirmed.
maxPriorityMicroLamports?
Section titled “maxPriorityMicroLamports?”
optionalmaxPriorityMicroLamports?:number|bigint
Defined in: wallet-solana/src/types.ts:46
Cap for the auto priority price (micro-lamports/CU, default 5_000_000).
minPriorityMicroLamports?
Section titled “minPriorityMicroLamports?”
optionalminPriorityMicroLamports?:number|bigint
Defined in: wallet-solana/src/types.ts:44
Floor for the auto priority price (micro-lamports/CU, default 0).
network?
Section titled “network?”
optionalnetwork?:string
Defined in: wallet-solana/src/types.ts:40
CAIP-2 network suffix; default mainnet genesis hash.
priorityFee?
Section titled “priorityFee?”
optionalpriorityFee?: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.
provider?
Section titled “provider?”
optionalprovider?: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.
retries?
Section titled “retries?”
optionalretries?:number
Defined in: wallet-solana/src/types.ts:32
Extra attempts across the provider list after the first failure (default 3).
rpcUrl?
Section titled “rpcUrl?”
optionalrpcUrl?:string|string[]
Defined in: wallet-solana/src/types.ts:28
Alias of provider.
simulate?
Section titled “simulate?”
optionalsimulate?: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.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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.
transactionMaxFee?
Section titled “transactionMaxFee?”
optionaltransactionMaxFee?:number|bigint
Defined in: wallet-solana/src/types.ts:38
Max fee (lamports, priority fee included) for sendTransaction / signTransaction.
transferMaxFee?
Section titled “transferMaxFee?”
optionaltransferMaxFee?:number|bigint
Defined in: wallet-solana/src/types.ts:36
Max fee (lamports, priority fee included) for transfer.