• Construct the lock identifier that would be assigned to the next lock created by an account.

    This resolves the account's current nonce and account index from chain and combines them with the provided creation order. The returned identifier is only accurate as long as no other transaction consumes the account's next nonce before the lock creation transaction is submitted.

    Returns

    a lock identifier for the next lock created by the account.

    Parameters

    • grpc: ConcordiumGRPCClient

      gRPC client used to resolve account info.

    • account: bigint | AccountAddress

      account address or account index of the account that will create the lock.

    • creationOrder: number | bigint = ...

      0-based creation order of the lock within the transaction. Defaults to 0.

    Returns Promise<LockId>

Generated using TypeDoc