Skip to main content
Version: Next

Interface: KeyInfo

Important information returned in many view calls regarding a specific access key.

Properties

allowance

allowance: number

How much allowance does the key have left (measured in $yoctoNEAR). When the key is deleted, this is refunded to the funder's balance.

Defined in

lib/types/drops.ts:25


curKeyUse

curKeyUse: number

Which use is the key currently on? For single-use keys, this is always 1.

Defined in

lib/types/drops.ts:16


dropId

dropId: string

Drop ID for the specific drop that the key belongs to.

Defined in

lib/types/drops.ts:11


keyId

keyId: number

The unique ID associated to this key. IDs are not unique across drops but they are unique for any key in the drop.

Defined in

lib/types/drops.ts:28


lastUsed

lastUsed: number

At what timestamp was the key last used? Measured in number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.

Defined in

lib/types/drops.ts:22


publicKey

publicKey: string

Public key for this access key.

Defined in

lib/types/drops.ts:13


remainingUses

remainingUses: number

How many uses this key has left before it's deleted.

Defined in

lib/types/drops.ts:19