NearConfig
Defined in: wallet-near/src/types.ts:11
Options for a NEAR wallet manager or account: RPC endpoints, network, fee caps and the pre-sign checks.
Properties
Section titled “Properties”allowDangerousActions?
Section titled “allowDangerousActions?”
optionalallowDangerousActions?:boolean
Defined in: wallet-near/src/types.ts:33
Allow actions that change the account itself or deploy code (AddKey, DeleteKey,
DeleteAccount, DeployContract, Stake, CreateAccount, global-contract actions,
SignedDelegate). Default false: they are refused with dangerous-action.
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: wallet-near/src/types.ts:17
Optional headers for every request (e.g. an API key).
maxStorageDeposit?
Section titled “maxStorageDeposit?”
optionalmaxStorageDeposit?:number|bigint
Defined in: wallet-near/src/types.ts:39
Most yoctoNEAR a token transfer may attach as storage_deposit to register the
recipient (the amount comes from the token contract itself). Default 0.0125 NEAR,
ten times the usual NEP-145 minimum.
network?
Section titled “network?”
optionalnetwork?:string
Defined in: wallet-near/src/types.ts:21
“mainnet” (default) | “testnet” | any CAIP-2 suffix.
provider?
Section titled “provider?”
optionalprovider?:NearProvider|NearProvider[]
Defined in: wallet-near/src/types.ts:13
RPC url(s) / transport(s). A list fails over in order. Omit for an offline (sign-only) wallet.
retries?
Section titled “retries?”
optionalretries?:number
Defined in: wallet-near/src/types.ts:15
Extra attempts across the provider list after the first failure (default 3).
simulate?
Section titled “simulate?”
optionalsimulate?:boolean
Defined in: wallet-near/src/types.ts:27
Run the balance / account / access-key preflight before signing (default true).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: wallet-near/src/types.ts:19
Per-request timeout for url providers, in ms (default 15 000): a node that never answers fails over (reads) or ends as “maybe sent” (send_tx).
transactionMaxFee?
Section titled “transactionMaxFee?”
optionaltransactionMaxFee?:number|bigint
Defined in: wallet-near/src/types.ts:25
Max fee (yoctoNEAR) for sendTransaction / signTransaction.
transferMaxFee?
Section titled “transferMaxFee?”
optionaltransferMaxFee?:number|bigint
Defined in: wallet-near/src/types.ts:23
Max fee (yoctoNEAR) for transfer.