@cfxlabsinc/b2b-services
    Preparing search index...
    Index
    instance: (...args: []) => SolanaMintfxAuthorityService = ...

    The process default: MINTFX_ENV and SOLANA_RPC_ENDPOINT read at each call.

    • Build instructions to create a new authority for a token

      Parameters

      • __namedParameters: {
            adminAuthority: Address;
            authority: Address;
            payer: Address;
            permissions: UserPermissions;
            tokenId: string;
        }

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >

    • Build instructions to destroy an authority

      Parameters

      • __namedParameters: { adminAuthority: Address; authority: Address; payer: Address; tokenId: string }

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >

    • Every MOVEUSD authority holding a permission bit the program no longer defines. check_permission rejects unknown bits, so such an authority fails every permissioned instruction until it is rewritten.

      Returns Promise<{ authorityStateAddress: Address; retiredBits: number[] }[]>

    • Destroy and create an authority at the same PDA in one transaction, re-granting the live account's parsed permissions, which have no field for a retired bit. Refuses an address that is not MOVEUSD's PDA for its grantee.

      Parameters

      • __namedParameters: { adminAuthority: Address; authorityStateAddress: Address; payer: Address }

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >

    • Build instructions to update an existing authority

      Parameters

      • __namedParameters: {
            adminAuthority: Address;
            authority: Address;
            permissions: Partial<UserPermissions>;
            tokenId: string;
        }

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >