RSS3 Documentation

Get Activity by ID

API Changes

GET /tx/{hash} -> GET /decentralized/tx/{id}

The new endpoint not only changes the URL but also revises the request parameters to facilitate more detailed and structured requests. This change aims to enhance functionality and specificity in querying Open Information in a decentralized manner.

Parameter Changes

For Requests

v0.4v1.0
hash (path, string) - required,Replaced. id (path, string, required): Retrieve details for the specified activity ID.
New. action_limit (integer, optional): Specify the number of actions within the activity to retrieve.
New action_page (integer, optional): Specify the pagination for actions.

For Responses

v0.4v1.0
New.
data (object): Lists the activities associated with the account.
actions (array): Details of actions involved in the activity.Replaced. data.actions (array): Upgraded protocol schema.
address_from (string): The originating address of the activity.Replaced. data.from (string): The originating account of the activity.
address_to (string): The destination address of the activity.Replaced. data.to (string): The destination account of the activity.
timestamp (Time): Timestamps indicating the actual time of the activity.Replaced. data.timestamp (integer): Changed from a potentially more complex Time object in the PreGod version to a simpler integer format in the Node version.
fee (nullable): The activity fee, which may be null.Replaced. data.fee (Fee): Detailed fee information for the activity.
hash (string): The hash of the activity.Replaced. data.id (string): A unique identifier for the activity.
owner (string): The owner of the address involved in the activity.Replaced. data.owner (string).
network (string): The open information network on which the activity occurred. result.platform (string): The platform associated with the activity. result.tag (string): A tag related to the activity. result.type (string): The type of the activity.Schema upgraded. data.network (Network), data.platform (Platform), data.tag (Tag), data.type (string).
While these fields exist in both versions, in the Node API they are possibly enhanced with richer schema definitions or standardized formats to ensure consistency across different parts of the API.
success (boolean, nullable): Indicates whether the activity was successful.Replaced. data.success (boolean).
New. data.calldata (Calldata): Details of the call made during the activity.
New. data.direction (Direction): The direction of the activity.
New. data.index (integer): The index position of the activity in the list.
New. data.total_actions (integer): The total number of actions within the activity.
New. meta(object): Provides a pagination of actions.

On this page

Edit on GitHub