Skip to main content

Interface: TokenQuantityInput

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / TokenQuantityInput

Interface: TokenQuantityInput

Defined in: packages/gala-core-sdk/dist/index.d.ts:2430

One token and amount of a write. Name the token with exactly one of tokenClassKey (plus an optional instance) or tokenName (needs a TokenNameResolver).

Extended by​

Properties​

instance?​

optional instance?: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2434

The instance of tokenClassKey to move, a decimal string; default "0" (fungible).


quantity​

quantity: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2442

The amount in WHOLE tokens, as the decimal string the chain is to receive ("1.5" is one and a half tokens). It is signed exactly as written: never scaled to base units, never re-formatted ("1.50" stays "1.50").


tokenClassKey?​

optional tokenClassKey?: TokenClassKeyInput

Defined in: packages/gala-core-sdk/dist/index.d.ts:2432

The token's class key.


tokenName?​

optional tokenName?: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2436

A product token name, resolved by the configured TokenNameResolver.