Skip to content

Instantly share code, notes, and snippets.

@dgamboa
Last active April 26, 2023 16:30
Show Gist options
  • Select an option

  • Save dgamboa/3d2fadbff4729512aace1c8567d4976d to your computer and use it in GitHub Desktop.

Select an option

Save dgamboa/3d2fadbff4729512aace1c8567d4976d to your computer and use it in GitHub Desktop.
Documentation for Figment Celo & Near Indexers

Celo

Celo Indexer Endpoints:

Method Path Description Params
GET /health health endpoint -
GET /status status of the application and chain include_chain (bool, optional) - when true, returns chain status
GET /block return block by height height (optional) - height [Default: 0 = last]
GET /block_times/:limit get last x block times limit (required) - limit of blocks
GET /blocks_summary get block summary interval (required) - time interval [hourly or daily] period (required) - summary period [ie. 24 hours]
GET /transactions get list of transaction hashes height (optional) - height [Default: 0 = last]
GET /transaction/:hash get transaction details -
GET /account/:address get account information for height address (required) - address height (optional) - height [Default: 0 = last]
GET /account_details/:address get account details address (required) - address limit (required) - number of recent account activities
GET /validators get list of validators height (optional) - height [Default: 0 = last]
GET /validators/for_min_height/:height get the list of validators for height greater than provided height (required) - height [Default: 0 = last]
GET /validator/:address get validator by address address (required) - validator's address sequences_limit (required) - number of last sequences to include eras_limit (required) - number of last eras to include
GET /validators_summary validator summary interval (required) - time interval [hourly or daily] period (required) - summary period [ie. 24 hours] address (optional) - validator's address
GET /validator_groups get list of validator groups height (optional) - height [Default: 0 = last]
GET /validator_group/:address get validator group by address address (required) - validator's address sequences_limit (required) - number of last sequences to include eras_limit (required) - number of last eras to include
GET /validator_groups_summary validator group summary interval (required) - time interval [hourly or daily] period (required) - summary period [ie. 24 hours] address (optional) - validator's address
GET /system_events/:address system events for given actor address (required) - address of account after (optional) - return events after with height greater than provided height kind (optional) - system event kind
GET /proposals get list of all proposals cursor (optional) - paging cursor page_size (optional) - size of one page of results
GET /proposals/:proposal_id/activity get governance activity on given proposal proposal_id (required) - ID of proposal cursor (optional) - paging cursor page_size (optional) - size of one page of results

Near

Near Indexer Endpoints:

For legacy public docs including params, please see here

Method Path Description
GET / See all available endpoints
GET /health Healthcheck endpoint
GET /status App version info and sync status
GET /height Current indexed blockchain height
GET /block Get latest block
GET /blocks Blocks search
GET /blocks/:hash Block details by ID or Hash
GET /block_stats Block times stats for a time bucket
GET /block_times Block average times
GET /block_times_interval Block creation stats
GET /epochs Get list of epochs
GET /epochs/:id Epoch details by ID
GET /validators List of chain validators
GET /validators/:id/epochs Validator Epochs performance by ID
GET /validators/:id/events Validator Events by ID
GET /delegators/:id/rewards Delegator rewards by ID
GET /delegators Delegator search
GET /transactions List of transactions
GET /transactions/:id Get transaction details
GET /accounts/:id Account details by ID or Key
GET /delegations/:id Account delegations by ID
GET /events List of Events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment