Skip to main content

Interface: TransferTokenInput

GalaChain core SDK 1.0.0-rc.8


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

Interface: TransferTokenInput

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

transferToken: one token to a recipient.

Extends​

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).

Inherited from​

TokenQuantityInput.instance


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").

Inherited from​

TokenQuantityInput.quantity


to​

to: string

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

The recipient (see TransferGalaInput.to).


tokenClassKey?​

optional tokenClassKey?: TokenClassKeyInput

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

The token's class key.

Inherited from​

TokenQuantityInput.tokenClassKey


tokenName?​

optional tokenName?: string

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

A product token name, resolved by the configured TokenNameResolver.

Inherited from​

TokenQuantityInput.tokenName


uniqueKey?​

optional uniqueKey?: string

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

The write's idempotency key: 1 to 128 characters of A-Za-z0-9._:-. Reuse a key only to retry the SAME write. Omitted: a fresh <uniqueKeyPrefix><uuid v4> is minted (CSPRNG).

Inherited from​

WriteKeyInput.uniqueKey