3.3 KiB
\ExplorerAPI
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| GetExplorerIndexers | Get /v1/explorer/indexers | Reports the deployment's chain indexer(s) and how far each has indexed. |
| GetExplorerOracles | Get /v1/explorer/oracles | Reports the on-chain price/data oracles from the graph's O-Chain PriceFeed registry. |
GetExplorerIndexers
ExplorerIndexersOut GetExplorerIndexers(ctx).Execute()
Reports the deployment's chain indexer(s) and how far each has indexed.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ExplorerAPI.GetExplorerIndexers(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExplorerAPI.GetExplorerIndexers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetExplorerIndexers`: ExplorerIndexersOut
fmt.Fprintf(os.Stdout, "Response from `ExplorerAPI.GetExplorerIndexers`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetExplorerIndexersRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetExplorerOracles
ExplorerOraclesOut GetExplorerOracles(ctx).Execute()
Reports the on-chain price/data oracles from the graph's O-Chain PriceFeed registry.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ExplorerAPI.GetExplorerOracles(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExplorerAPI.GetExplorerOracles``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetExplorerOracles`: ExplorerOraclesOut
fmt.Fprintf(os.Stdout, "Response from `ExplorerAPI.GetExplorerOracles`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetExplorerOraclesRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]