Skip to content

@gala-chain/connectAPI


API > TokenHold

Class: TokenHold

Contents

Constructors

new TokenHold(params)

new TokenHold(params?): TokenHold

Parameters

params?: object

params.created?: number

params.createdBy?: string

params.expires?: number

params.instanceId?: BigNumber

params.lockAuthority?: string

params.name?: string

params.quantity?: BigNumber

Source

chain-api/src/types/TokenBalance.ts:593

Properties

created

readonly created: number

Source

chain-api/src/types/TokenBalance.ts:573


createdBy

readonly createdBy: string

Source

chain-api/src/types/TokenBalance.ts:560


expires

readonly expires: number

Source

chain-api/src/types/TokenBalance.ts:577


instanceId

readonly instanceId: BigNumber

Source

chain-api/src/types/TokenBalance.ts:565


lockAuthority

lockAuthority?: string

Source

chain-api/src/types/TokenBalance.ts:591


name

readonly name?: string

Source

chain-api/src/types/TokenBalance.ts:581


quantity

readonly quantity: BigNumber

Source

chain-api/src/types/TokenBalance.ts:569


DEFAULT_EXPIRES

static readonly DEFAULT_EXPIRES: 0 = 0

Source

chain-api/src/types/TokenBalance.ts:557

Methods

isExpired()

isExpired(currentTime): boolean

Parameters

currentTime: number

Source

chain-api/src/types/TokenBalance.ts:640


matches()

matches(instanceId, name): boolean

Parameters

instanceId: BigNumber

name: undefined | string

Source

chain-api/src/types/TokenBalance.ts:636


createValid()

static createValid(params): Promise\<TokenHold>

Parameters

params: object

params.created: number

params.createdBy: string

params.expires: undefined | number

params.instanceId: BigNumber

params.lockAuthority: undefined | string

params.name: undefined | string

params.quantity: BigNumber

Source

chain-api/src/types/TokenBalance.ts:617


sortByAscendingExpiration()

static sortByAscendingExpiration(a, b): 0 | 1 | -1

Parameters

a: TokenHold

b: TokenHold

Source

chain-api/src/types/TokenBalance.ts:645