Function setAuthority

  • Assign a new authority to the account

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • account: PublicKey

      Address of the account

    • currentAuthority: PublicKey | Signer

      Current authority of the specified type

    • authorityType: AuthorityType

      Type of authority to set

    • newAuthority: null | PublicKey

      New authority of the account

    • multiSigners: Signer[] = []

      Signing accounts if currentAuthority is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc