Interface: LockTokensData
Gala Launchpad SDK 9.0.0-rc.5 / index / LockTokensData
Interface: LockTokensData
Defined in: packages/launchpad-sdk/dist/types/lock.dto.d.ts:62
Data required for locking tokens on GalaChain (batch operation)
Supports locking multiple token types in a single transaction. Locked tokens cannot be transferred until unlocked by the lock authority. Useful for staking, escrow, vesting, or other hold scenarios.
Batch Behavior: Each token in the batch is processed as part of a single GalaChain transaction. The transaction either succeeds completely (all tokens locked) or fails completely (no tokens locked). However, network errors after submission may require checking transaction status to confirm the outcome.
Batch Limits: Maximum MAX_LOCK_BATCH_SIZE tokens per operation (default: 100).
Note: Lock parameters (lockAuthority, expires, name) from the first token with those fields set apply to the entire batch - GalaChain locks support only one set of parameters per transaction.
Properties
privateKey?
optionalprivateKey?:string
Defined in: packages/launchpad-sdk/dist/types/lock.dto.d.ts:68
Optional private key override for this operation (format: '0x' + 64 hex characters)
tokens
tokens:
LockTokenEntry[]
Defined in: packages/launchpad-sdk/dist/types/lock.dto.d.ts:64
Array of tokens to lock (each with tokenId or tokenName, amount, and optional lock parameters)
uniqueKey?
optionaluniqueKey?:string
Defined in: packages/launchpad-sdk/dist/types/lock.dto.d.ts:66
Optional unique key for idempotency - auto-generated if not provided