Constructors

Properties

Methods

Constructors

Properties

client: LuzidGrpcClient

Methods

  • Clones an account.

    Parameters

    • cluster: LuzidCluster

      the cluster to clone the account from (MainnetBeta or Devnet)

    • address: string

      the pubkey of the account to clone

    • opts: {
          commitment?: "processed" | "confirmed" | "finalized";
      } = {}

      optional parameters to further configure how the account is cloned

      • Optional commitment?: "processed" | "confirmed" | "finalized"

        the commitment that the clone operation should reach before cloneAccount returns, default is confirmed

    Returns Promise<Successful<MutatorCloneAccountResponse>>

  • Modifies an account.

    Parameters

    • modification: AccountModificationBuilder | AccountModification

      the modification to apply to the account

    • opts: {
          commitment?: "processed" | "confirmed" | "finalized";
      } = {}

      optional parameters to further configure how the account is modified

      • Optional commitment?: "processed" | "confirmed" | "finalized"

        the commitment that the modify operation should reach before modifyAccount returns, default is confirmed

    Returns Promise<Successful<MutatorModifyAccountResponse>>

Generated using TypeDoc