Skip to main content
Version: Next

Interface: ProtocolReturnedKeyInfo

Key information returned from the Protocol. This interface is exactly the same as the KeyInfo, except all the fields are snake cased instead of camel cased due to what the Protocol returns.

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/protocol.ts:23


cur_key_use

cur_key_use: number

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

Defined in

lib/types/protocol.ts:14


drop_id

drop_id: string

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

Defined in

lib/types/protocol.ts:9


key_id

key_id: 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/protocol.ts:26


last_used

last_used: 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/protocol.ts:20


public_key

public_key: string

Public key for this access key.

Defined in

lib/types/protocol.ts:11


remaining_uses

remaining_uses: number

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

Defined in

lib/types/protocol.ts:17