IStakingProtocol
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:69
The staking interface as a runtime marker class: every method throws NotImplementedError.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IStakingProtocol():
IStakingProtocol
Returns
Section titled “Returns”IStakingProtocol
Methods
Section titled “Methods”claimWithdrawals()
Section titled “claimWithdrawals()”claimWithdrawals(
_options?):Promise<ClaimWithdrawalsResult>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:102
Claims finalized withdrawal requests — native tokens land on the account.
Parameters
Section titled “Parameters”_options?
Section titled “_options?”Returns
Section titled “Returns”Promise<ClaimWithdrawalsResult>
getApr()
Section titled “getApr()”getApr():
Promise<number>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:117
The protocol’s current staking APR, in percent (e.g. 2.7 for 2.7%).
Returns
Section titled “Returns”Promise<number>
getStakedBalance()
Section titled “getStakedBalance()”getStakedBalance():
Promise<StakedBalance>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:112
The account’s staked position.
Returns
Section titled “Returns”Promise<StakedBalance>
getWithdrawalRequests()
Section titled “getWithdrawalRequests()”getWithdrawalRequests():
Promise<WithdrawalRequestsView>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:97
The account’s live withdrawal queue: open requests, pending and claimable.
Returns
Section titled “Returns”Promise<WithdrawalRequestsView>
quoteClaimWithdrawals()
Section titled “quoteClaimWithdrawals()”quoteClaimWithdrawals(
_options?):Promise<Omit<ClaimWithdrawalsResult,"hash">>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:107
Quotes the costs of a claim operation.
Parameters
Section titled “Parameters”_options?
Section titled “_options?”Returns
Section titled “Returns”Promise<Omit<ClaimWithdrawalsResult, "hash">>
quoteRequestWithdrawal()
Section titled “quoteRequestWithdrawal()”quoteRequestWithdrawal(
_options):Promise<Omit<WithdrawalRequestResult,"hash"|"approveHash">>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:92
Quotes the costs of a withdrawal request.
Parameters
Section titled “Parameters”_options
Section titled “_options”Returns
Section titled “Returns”Promise<Omit<WithdrawalRequestResult, "hash" | "approveHash">>
quoteStake()
Section titled “quoteStake()”quoteStake(
_options):Promise<Omit<StakeResult,"hash">>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:78
Quotes the costs of a stake operation.
Parameters
Section titled “Parameters”_options
Section titled “_options”Returns
Section titled “Returns”Promise<Omit<StakeResult, "hash">>
requestWithdrawal()
Section titled “requestWithdrawal()”requestWithdrawal(
_options):Promise<WithdrawalRequestResult>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:87
Queues staked tokens for withdrawal. The request finalizes out of band; once IStakingProtocol#getWithdrawalRequests reports it claimable, IStakingProtocol#claimWithdrawals exchanges it for native tokens.
Parameters
Section titled “Parameters”_options
Section titled “_options”Returns
Section titled “Returns”Promise<WithdrawalRequestResult>
stake()
Section titled “stake()”stake(
_options):Promise<StakeResult>
Defined in: protocol-staking-lido-evm/src/staking-protocol.ts:73
Stakes native tokens into the protocol; staked tokens land on the account.
Parameters
Section titled “Parameters”_options
Section titled “_options”Returns
Section titled “Returns”Promise<StakeResult>