Event Search API
Once you've created at least one event indexer, and events indexed by your Graffle company will be available for searching over via the Event Search API.
Your company id is viewable in the top right corner of the projects page in the Graffle management dashboard.
The url for the Event Search API is:
Main Net:
https://prod-main-net-dashboard-api.azurewebsites.net/api/company/{ COMPANY ID }/search
Test Net:
https://prod-test-net-dashboard-api.azurewebsites.net/api/company/{ COMPANY ID }/search
NOTE: Events on Test Net are stored for 3 days before being removed.
Example Response
All of the following query parameters can be combined together to narrow down your search results.
BlockEventData Query Parameters
Any of the properties in "blockEventData" can be searched against. In the above sample response the following are all valid search parameters:
/search?id=292
/search?price=25
/search?from="0x886f3aeaf848c535"
/search?name="Solitude 2.0"
/search?artist="Jos"
/search?edition="1 of 1"
/search?bidder="0xa9a82c6a04d6df2b"
/search?price=25
/search?dropId=21
/search?auctionId=387
Standard Query Parameters
There are also standard query parameters that can be applied regardless of what events you are indexing.
projectId
Your Graffle project id. Will limit results to only events indexed by this project.
eventType
Full Flow event type, or a comma delimited list of event types. ex: A.d796ff17107bbff6.Versus.Bid
transactionId
Transaction id on Flow. Will limit results to only events that occurred within this transaction
startDate
DateTimeOffset, limits results to those that occurred after.
endDate
DateTimeOffset, limits results to those that occurred before.
since
Unix seconds timestamp. Will limit results to events that occurred after this timestamp.
Paging
You can page through your results using page
and pageSize
parameters.
To assist with pagination you can provide the following in the request header to retrieve the total number of events for the query
Last updated