Class: Token
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Token(__namedParameters
)
Parameters
Name | Type |
---|---|
__namedParameters | Object |
__namedParameters.parentTokenId? | Field |
__namedParameters.tokenOwner | PublicKey |
Defined in
Properties
id
• Readonly
id: Field
Defined in
parentTokenId
• Readonly
parentTokenId: Field
Defined in
tokenOwner
• Readonly
tokenOwner: PublicKey
Defined in
Id
▪ Static
Id: Object
= TokenId
Type declaration
Name | Type |
---|---|
check | (x : Field ) => void |
default | Field |
fromFields | (x : Field [], aux : any []) => Field |
toAuxiliary | (x? : Field ) => any [] |
toFields | (x : Field ) => Field [] |
toInput | (x : Field ) => { fields? : Field [] ; packed? : [Field , number ][] } |
emptyValue | () => Field |
fromBase58 | (base58 : string ) => Field |
fromJSON | (x : string ) => Field |
sizeInFields | () => number |
toBase58 | (t : Field ) => string |
toJSON | (x : Field ) => string |
Defined in
Methods
getId
▸ Static
getId(tokenOwner
, parentTokenId?
): Field
Parameters
Name | Type | Default value |
---|---|---|
tokenOwner | PublicKey | undefined |
parentTokenId | Field | TokenId.default |