Broadcasts a transaction to the blockchain.
POST /api/v0/broadcastawait BitBadgesApi.broadcastTx(payload);Also, consider checking out Broadcast UI, so you can simply copy and paste your transaction to a UI. All signing, API communication, etc is outsourced to the UI.
Calculates points for a page in an application and caches the result.
Checks if a claim has been successfully completed.
Checks if the user is signed in.
Optionalpayload: iCheckSignInStatusPayloadFor password based approvals, we hand out codes behind the scenes whenever a user requests a password. This is to prevent replay attacks on the blockchain. This API call will return a valid code if a valid password is provided.
Each address is limited to one code per password. If the password is provided again, they will receive the same code.
Creates an application.
Creates an developer app.
Creates a dynamic data bin.
Creates a SIWBB request.
Optionalpayload: iCreateSIWBBRequestPayloadCreates a utility page.
Deletes an application.
Deletes an developer app.
Deletes a dynamic data bin.
Deletes a SIWBB request.
Optionalpayload: iDeleteSIWBBRequestPayloadDeletes a utility page.
Gets and verifies a SIWBB request.
Optionalpayload: iExchangeSIWBBAuthorizationCodePayloadFilters tokens in a collection based on multiple filter values.
Gets an account by address or username.
Gets accounts and accompying details.
POST /api/v0/usersawait BitBadgesApi.getAccounts(payload);Get an application by ID.
Optionalpayload: iGetApplicationPayloadGets applications.
Gets the attempt data for a specific claim attempt from the request bin plugin.
Optionalpayload: iGetAttemptDataFromRequestBinPayloadGets the balance of a specific token for a specific address
Optionalpayload: iGetBalanceByAddressPayloadGets the balance for an address at the current time. This is a streamlined version of getBalanceByAddress.
Optionalpayload: iGetBalanceByAddressPayloadGet a claim by ID.
Optionalpayload: iGetClaimPayloadGets claim activity by type for a specific user. Specify the viewType to determine what claim activity to retrieve.
Gets claim attempts.
Gets the status of a claim attempt.
Gets the claim by ID.
Gets a specific collection.
Optionalpayload: iGetCollectionPayloadGets a specific amount tracker by ID for a collection
Gets amount trackers for a specific collection.
Gets a specific challenge tracker by ID for a collection
Gets challenge trackers for a specific collection.
Gets claims for a specific collection.
Gets listings for a specific collection.
Gets owners for a specific collection.
This function retrieves collections and accompanying details. Consider using the getCollectionsAndUpdate function instead for native support in handling paginations, appending metadata, and more.
POST /api/v0/collectionsGets transfer activity for a specific collection.
Get developer app by ID.
Optionalpayload: iGetDeveloperAppPayloadGet all developer apps for a user.
Get dynamic data store activity
Get a dynamic data store by ID.
Optionalpayload: iGetDynamicDataStorePayloadGets dynamic data stores.
Get a dynamic data store value by ID.
Optionalpayload: iGetDynamicDataStoreValuePayloadGet a dynamic data store values paginated by ID.
Optionalpayload: iGetDynamicDataStoreValuesPaginatedPayloadGet the gated content for a claim.
Optionalpayload: iGetGatedContentForClaimPayloadGet map by ID
Optionalpayload: iGetMapPayloadGets the owners for a specific token in a collection
Get plugin by ID.
Optionalpayload: iGetPluginPayloadGet all developer apps for a user.
Gets points activity for an application.
Gets points activity for a specific user.
Gets the refresh status for a collection. Used to track if any errors occur during a refresh, or if it is in the queue or not.
For on-chain claims where codes are "reserved" for a specific address, this function will return all codes reserved.
Search collections, tokens, accounts based on a search value.
Optionalpayload: iGetSearchPayload<NumberType>Gets the SIWBB requests for a specific developer app.
Gets Sign-In with BitBadges (SIWBB) requests (authentication requests) for a user.
Gets the current status details about the blockchain / indexer (gas, block height, etc).
Optionalpayload: iGetStatusPayloadGets the activity for a specific token in a collection
Gets current metadata for a specific token in a collection.
Gets tokens for a specific user. Specify the viewType to determine what tokens to retrieve.
Gets transfer activity for a specific user.
Get utility page by ID.
Optionalpayload: iGetUtilityPagePayloadGets utility pages.
Performs multiple actions for a dynamicStore in batch.
Triggers a metadata refresh for a specific collection. BitBadges API uses a refresh queue system for fetching anything off-chain. This will refetch any details for the collection (such as metadata, balances, approval details, etc). Note it will reject if recently refreshed. Uses a cooldown of 5 minutes.
Optionalpayload: iRefreshMetadataPayloadRevokes an access token for a user.
Rotates a SIWBB request.
Searches for applications.
Searches for claims.
Searches for developer apps.
Searches dynamic data stores.
Searches for utility pages.
Simulates a claim attempt. A success response means the claim is valid and can be completed.
Simulates a transaction on the blockchain.
POST /api/v0/simulateawait BitBadgesApi.simulateTx(payload);This means that it will return the gas used and any errors that occur on a dry run. Should be used before broadcasting a transaction. Does not require signatures.
Updates an application.
Update an developer app.
Updates a dynamic data bin.
Updates a utility page.
A generic route for verifying asset ownership requirements. Asset requirements support AND / OR / NOT logic.
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.
By default, we use the official API URL (https://api.bitbadges.io). You can override this by passing in a custom apiUrl.
See
BitBadges API Documentation