bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class BitBadgesAdminAPI<T>

    This is the BitBadgesAPI class which provides all typed API calls to the BitBadges API. See official documentation for more details and examples. Must pass in a valid API key. , iGetDeveloperAppsPayload convertFunction is used to convert any responses returned by the API to your desired NumberType.

    import { BigIntify, Stringify, Numberify, BitBadgesAPI } from "bitbadgesjs-sdk";
    const BitBadgesApi = new BitBadgesAPI({ convertFunction: BigIntify, ....})
    const collections = await BitBadgesApi.getCollections(...);

    By default, we use the official API URL (https://api.bitbadges.io). You can override this by passing in a custom apiUrl.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    addApprovalDetailsToOffChainStorage addToIpfs assertPositiveCollectionId assertPositiveInteger broadcastTx calculatePoints checkClaimSuccess checkIfSignedIn completeClaim createApiKey createApplication createClaims createDeveloperApp createDynamicDataStore createPaymentIntent createPlugin createSIWBBRequest createUtilityPage deleteApiKey deleteApplication deleteClaims deleteConnectedAccount deleteDeveloperApp deleteDynamicDataStore deletePlugin deleteSIWBBRequest deleteUtilityPage exchangeSIWBBAuthorizationCode fetchMetadataDirectly filterSuggestions FilterTokensInCollection getAccount getAccounts getActiveAuthorizations getApiKeys getApplication getApplications getAttemptDataFromRequestBin getBalanceByAddress getBalanceByAddressSpecificToken getBrowse getClaim getClaimActivityForUser getClaimAttempts getClaimAttemptStatus getClaims getCollection getCollectionAmountTrackerById getCollectionAmountTrackers getCollectionChallengeTrackerById getCollectionChallengeTrackers getCollectionClaims getCollectionListings getCollectionOwners getCollections getCollectionTransferActivity getConnectedAccounts getDeveloperApp getDeveloperApps getDynamicDataActivity getDynamicDataStore getDynamicDataStores getDynamicDataStoreValue getDynamicDataStoreValuesPaginated getGatedContentForClaim getMap getMaps getMapValue getMapValues getOwners getPlugin getPluginErrors getPlugins getPointsActivity getPointsActivityForUser getRefreshStatus getReservedClaimCodes getSearchResults getSignInChallenge getSIWBBRequestsForDeveloperApp getSiwbbRequestsForUser getStatus getTokenActivity getTokenMetadata getTokensFromFaucet getTokensViewForUser getTransferActivityForUser getUtilityPage getUtilityPages handleApiError performBatchStoreAction performStoreAction refreshMetadata revokeOauthAuthorization rotateApiKey rotateSIWBBRequest scheduleTokenRefresh searchApplications searchClaims searchDeveloperApps searchDynamicDataStores searchPlugins searchUtilityPages setAccessToken signOut simulateClaim simulateTx unsetAccessToken updateAccountInfo updateApplication updateClaims updateDeveloperApp updateDynamicDataStore updatePlugin updateUserSeenActivity updateUtilityPage verifyOwnershipRequirements verifySignIn verifySIWBBRequest

    Constructors

    Properties

    accessToken: string = ''
    apiKey: undefined | string = process.env.BITBADGES_API_KEY
    appendedHeaders: Record<string, string> = {}
    axios: AxiosInstance = ...
    BACKEND_URL: string = ...
    ConvertFunction: (num: NumberType) => T

    Methods