Skip to main content

Class: Token

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Token(__namedParameters)

Parameters

NameType
__namedParametersObject
__namedParameters.parentTokenId?Field
__namedParameters.tokenOwnerPublicKey

Defined in

lib/account_update.ts:567

Properties

id

Readonly id: Field

Defined in

lib/account_update.ts:553


parentTokenId

Readonly parentTokenId: Field

Defined in

lib/account_update.ts:554


tokenOwner

Readonly tokenOwner: PublicKey

Defined in

lib/account_update.ts:555


Id

Static Id: Object = TokenId

Type declaration

NameType
check(x: Field) => void
defaultField
ofFields(x: Field[]) => Field
toFields(x: Field) => Field[]
toInput(x: Field) => { fields?: Field[] ; packed?: [Field, number][] }
toJSON(x: Field) => JSONValue
fromBase58(base58: string) => Field
sizeInFields() => number
toBase58(field: Field) => string

Defined in

lib/account_update.ts:557

Methods

getId

Static getId(tokenOwner, parentTokenId?): Field

Parameters

NameTypeDefault value
tokenOwnerPublicKeyundefined
parentTokenIdFieldTokenId.default

Returns

Field

Defined in

lib/account_update.ts:559