AddAccessKey
Last updated
Last updated
• Docs
/ / AddAccessKey
A add access key promise action.
new AddAccessKey(
publicKey
,allowance
,receiverId
,functionNames
,nonce
):
Parameters
• publicKey:
The public key to add as a access key.
• allowance: bigint
The allowance for the key in yoctoNEAR.
• receiverId: string
The account ID of the receiver.
• functionNames: string
The names of functions to authorize.
• nonce: bigint
The nonce to use.
Returns
Overrides
Defined in
allowance:
bigint
The allowance for the key in yoctoNEAR.
Defined in
functionNames:
string
The names of functions to authorize.
Defined in
nonce:
bigint
The nonce to use.
Defined in
The public key to add as a access key.
Defined in
receiverId:
string
The account ID of the receiver.
Defined in
add(
promiseIndex
):void
The method that describes how a promise action adds it's action to the promise batch with the provided index.
Parameters
The index of the promise batch to attach the action to.
Returns
void
Overrides
Defined in
.
publicKey:
• promiseIndex:
.