Stake
promise • Docs
near-sdk-js v2.0.0 / promise / Stake
Class: Stake
A stake promise action.
Extends
Constructors
new Stake()
new Stake(
amount
,publicKey
):Stake
Parameters
• amount: bigint
The amount of NEAR to transfer.
• publicKey: PublicKey
The public key to use for staking.
Returns
Overrides
Defined in
packages/near-sdk-js/src/promise.ts:209
Properties
amount
amount:
bigint
The amount of NEAR to transfer.
Defined in
packages/near-sdk-js/src/promise.ts:209
publicKey
publicKey:
PublicKey
The public key to use for staking.
Defined in
packages/near-sdk-js/src/promise.ts:209
Methods
add()
add(
promiseIndex
):void
The method that describes how a promise action adds it's action to the promise batch with the provided index.
Parameters
• promiseIndex: PromiseIndex
The index of the promise batch to attach the action to.
Returns
void
Overrides
Defined in
Last updated