Get Activity By Id
⭐️ Description
This API endpoint allows you to retrieve a decentralized transaction activity using its ID.
The API call is a GET request and the id
parameter is required in the API call path. You can also use two query parameters:
action_limit
controls the number of actions from the transaction activityaction_page
specifies the pagination for actions from the activity
For more details, please visit the RSS3 DSL API.
🔨 Example
Let's make an API call to retrieve an activity using its ID. We add the activity id to the request path and use the query parameter action_limit=1
to display only one action from the activity.
Copy the code below and run it in your terminal to see the result.
💻 Response
The response from this call will look like this:
Congratulations 🎉! You just learned how to retrieve an activity by its id.
🧰 SDK
You can also integrate this feature into your code using our RSS3 SDKs. The SDK ensures type safety and provides IDE auto-completion support, making your integration smoother.
[SDKs](SDKs for building with RSS3.)