Table of Contents
/Tokens/GetTokenEvents
Gets a list of token events.
JSON
- Request
{ "tokenId":Required(Str(PTokenId)) "offset":Optional(Int(0 <= POffset <= 2147483647)), "maxCount":Optional(Int(0 < PMaxCount <= 2147483647)) }
- Response (if successful)
{ "Events":Required(PEvents) }
XML
- Request
<GetTokenEvents xmlns="https://waher.se/Schema/BrokerAgent.xsd" tokenId=(Required(Str(PTokenId))) offset=(Optional(Int(0 <= POffset <= 2147483647))) maxCount=(Optional(Int(0 < PMaxCount <= 2147483647))) />
- Response (if successful)
<EventsResult xmlns="https://waher.se/Schema/BrokerAgent.xsd"> <Events> <[Required(PEvents)]> </Events> </EventsResult>
Input Parameters
Parameter | Description |
---|---|
PTokenId |
ID of token. |
POffset |
Offset into the list where response begins. |
PMaxCount |
Maximum number of contracts to return. |
Response Parameters
Parameter | Description |
---|---|
PEvents |
Events found. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Tokens.GetTokenEvents(TokenId,Offset,MaxCount);