LiquidStakingNearConfig
Defined in: protocol-staking-liquid-near/src/types.ts:31
Configuration of LiquidStakingProtocolNear. Only pool is required.
Properties
Section titled “Properties”
optionalapr?: () =>number|Promise<number>
Defined in: protocol-staking-liquid-near/src/types.ts:47
Replaces the price-based APR estimate (an app’s or an indexer’s figure), percent.
Returns
Section titled “Returns”number | Promise<number>
aprWindowEpochs?
Section titled “aprWindowEpochs?”
optionalaprWindowEpochs?:number
Defined in: protocol-staking-liquid-near/src/types.ts:49
Epochs the APR estimate looks back over (default 24, ~7 days).
archivalProvider?
Section titled “archivalProvider?”
optionalarchivalProvider?:NearProvider|NearProvider[]
Defined in: protocol-staking-liquid-near/src/types.ts:39
Archival RPC for the APR’s past price (default fastnear’s archival endpoint for the network).
optionalgas?:object
Defined in: protocol-staking-liquid-near/src/types.ts:45
Prepaid gas overrides (defaults: 30 Tgas each). All of it is bought upfront at min_gas_purchase_price: keep it small.
stake?
Section titled “stake?”
optionalstake?:bigint
unstake?
Section titled “unstake?”
optionalunstake?:bigint
withdraw?
Section titled “withdraw?”
optionalwithdraw?:bigint
network?
Section titled “network?”
optionalnetwork?:NearNetwork
Defined in: protocol-staking-liquid-near/src/types.ts:35
Default: from the account’s chain (near:testnet → testnet, else mainnet).
pool:
LiquidPoolConfig|"linear"|"rnear"
Defined in: protocol-staking-liquid-near/src/types.ts:33
'linear' (LiNEAR), 'rnear' (Rhea rNEAR, mainnet only), or a family contract. Required.
provider?
Section titled “provider?”
optionalprovider?:NearProvider|NearProvider[]
Defined in: protocol-staking-liquid-near/src/types.ts:37
RPC url(s) or transport(s); a list fails over. Default: the wallet-near account’s own provider.
reserve?
Section titled “reserve?”
optionalreserve?:number|bigint
Defined in: protocol-staking-liquid-near/src/types.ts:43
yoctoNEAR stake leaves on the account (default 0.02 NEAR); never less than one unstake’s upfront gas.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: protocol-staking-liquid-near/src/types.ts:41
Per-request timeout for url providers, ms (default 15 000).