Function createSetAuthorityInstruction

  • Construct a SetAuthority instruction

    Parameters

    • account: PublicKey

      Address of the token account

    • currentAuthority: PublicKey

      Current authority of the specified type

    • authorityType: AuthorityType

      Type of authority to set

    • newAuthority: null | PublicKey

      New authority of the account

    • multiSigners: (PublicKey | Signer)[] = []

      Signing accounts if currentAuthority is a multisig

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc