The subtype of the promise.
Whether the promise should return.
Private
shouldWhether the promise should return.
Private
subtypeThe subtype of the promise.
Creates a add access key promise action and adds it to the current promise. Uses 0n as the nonce.
The public key to add as a access key.
The allowance for the key in yoctoNEAR.
The account ID of the receiver.
The names of funcitons to authorize.
Creates a add access key promise action and adds it to the current promise. Allows you to specify the nonce.
The public key to add as a access key.
The allowance for the key in yoctoNEAR.
The account ID of the receiver.
The names of funcitons to authorize.
The nonce to use.
Private
addCreates a add full access key promise action and adds it to the current promise. Uses 0n as the nonce.
The public key to add as a full access key.
Creates a add full access key promise action and adds it to the current promise. Allows you to specify the nonce.
The public key to add as a full access key.
The nonce to use.
Joins the provided promise with the current promise, making the current promise a joint promise subtype.
The promise to join with the current promise.
Sets the shouldReturn field to true.
Recursively goes through the current promise to get the promise index.
Creates a create account promise action and adds it to the current promise.
Creates a delete account promise action and adds it to the current promise.
The beneficiary of the account deletion - the account to recieve all of the remaining funds of the deleted account.
Creates a delete key promise action and adds it to the current promise.
The public key to delete from the account.
Creates a deploy contract promise action and adds it to the current promise.
The code of the contract to be deployed.
Creates a function call promise action and adds it to the current promise.
The name of the function to be called.
The utf-8 string arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
Creates a function call raw promise action and adds it to the current promise.
The name of the function to be called.
The arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
Creates a function call weight promise action and adds it to the current promise.
The name of the function to be called.
The utf-8 string arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
Creates a function call weight raw promise action and adds it to the current promise.
The name of the function to be called.
The arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
Creates a stake promise action and adds it to the current promise.
The amount of NEAR to tranfer.
The public key to use for staking.
Adds a callback to the current promise.
The promise to be executed as the promise.
Creates a transfer promise action and adds it to the current promise.
The amount of NEAR to tranfer.
Static
newCreates a new promise to the provided account ID.
The account ID on which to call the promise.
Generated using TypeDoc
A high level class to construct and work with NEAR promises.