All URIs are relative to https://api-mainnet.celenium.io/v1
| Method | HTTP request | Description |
|---|---|---|
| Stats24hChanges | Get /stats/changes_24h | Get changes for 24 hours |
| StatsHlDomains | Get /stats/hyperlane/chains | Get stats for hyperlane transfers splitted by domain |
| StatsHlSeries | Get /stats/hyperlane/series/{id}/{name}/{timeframe} | Get histogram for hyperlane domains with precomputed stats |
| StatsHlTotalSeries | Get /stats/hyperlane/chains/{name}/{timeframe} | Get histogram for aggregated hyperlane domains with precomputed stats |
| StatsIbcChains | Get /stats/ibc/chains | Get stats for ibc channels splitted by chains |
| StatsIbcSeries | Get /stats/ibc/series/{id}/{name}/{timeframe} | Get histogram for ibc channels with precomputed stats |
| StatsIbcSummary | Get /stats/ibc/summary | Get stats for ibc the largest transfer and busiest channel per day |
| StatsMessagesCount24h | Get /stats/messages_count_24h | Get messages distribution for the last 24 hours |
| StatsNamespaceUsage | Get /stats/namespace/usage | Get namespaces with sorting by size. |
| StatsNsSeries | Get /stats/namespace/series/{id}/{name}/{timeframe} | Get histogram for namespace with precomputed stats |
| StatsRollup24h | Get /stats/rollup_stats_24h | Get rollups stats for last 24 hours |
| StatsSeries | Get /stats/series/{name}/{timeframe} | Get histogram with precomputed stats |
| StatsSeriesCumulative | Get /stats/series/{name}/{timeframe}/cumulative | Get cumulative histogram with precomputed stats |
| StatsSizeGroups | Get /stats/size_groups | Get blobs count grouped by size |
| StatsSquareSize | Get /stats/square_size | Get histogram for square size distribution |
| StatsStakingDistribution | Get /stats/staking/distribution | Get histogram for staking |
| StatsStakingSeries | Get /stats/staking/series/{id}/{name}/{timeframe} | Get histogram for staking with precomputed stats |
| StatsSummary | Get /stats/summary/{table}/{function} | Get value by table and function |
[]ResponsesChange24hBlockStats Stats24hChanges(ctx).Execute()
Get changes for 24 hours
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.Stats24hChanges(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.Stats24hChanges``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Stats24hChanges`: []ResponsesChange24hBlockStats
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.Stats24hChanges`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiStats24hChangesRequest struct via the builder pattern
[]ResponsesChange24hBlockStats
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesHlDomainStats StatsHlDomains(ctx).Limit(limit).Offset(offset).Execute()
Get stats for hyperlane transfers splitted by domain
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
limit := int32(56) // int32 | Count of requested entities (optional)
offset := int32(56) // int32 | Offset (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsHlDomains(context.Background()).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsHlDomains``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsHlDomains`: []ResponsesHlDomainStats
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsHlDomains`: %v\n", resp)
}Other parameters are passed through a pointer to a apiStatsHlDomainsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | Count of requested entities | |
| offset | int32 | Offset |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesHistogramItem StatsHlSeries(ctx, id, timeframe, name).From(from).To(to).Execute()
Get histogram for hyperlane domains with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Domain id
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsHlSeries(context.Background(), id, timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsHlSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsHlSeries`: []ResponsesHistogramItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsHlSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Domain id | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsHlSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesHistogramItem StatsHlTotalSeries(ctx, timeframe, name).From(from).To(to).Execute()
Get histogram for aggregated hyperlane domains with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsHlTotalSeries(context.Background(), timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsHlTotalSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsHlTotalSeries`: []ResponsesHistogramItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsHlTotalSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsHlTotalSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesIbcChainStats StatsIbcChains(ctx).Limit(limit).Offset(offset).Execute()
Get stats for ibc channels splitted by chains
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
limit := int32(56) // int32 | Count of requested entities (optional)
offset := int32(56) // int32 | Offset (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsIbcChains(context.Background()).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsIbcChains``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsIbcChains`: []ResponsesIbcChainStats
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsIbcChains`: %v\n", resp)
}Other parameters are passed through a pointer to a apiStatsIbcChainsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | Count of requested entities | |
| offset | int32 | Offset |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesHistogramItem StatsIbcSeries(ctx, id, timeframe, name).From(from).To(to).Execute()
Get histogram for ibc channels with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := "id_example" // string | Channel id
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsIbcSeries(context.Background(), id, timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsIbcSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsIbcSeries`: []ResponsesHistogramItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsIbcSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | Channel id | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsIbcSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesIbcSummaryStats StatsIbcSummary(ctx).Execute()
Get stats for ibc the largest transfer and busiest channel per day
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsIbcSummary(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsIbcSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsIbcSummary`: []ResponsesIbcSummaryStats
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsIbcSummary`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiStatsIbcSummaryRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesCountItem StatsMessagesCount24h(ctx).Execute()
Get messages distribution for the last 24 hours
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsMessagesCount24h(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsMessagesCount24h``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsMessagesCount24h`: []ResponsesCountItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsMessagesCount24h`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiStatsMessagesCount24hRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesNamespaceUsage StatsNamespaceUsage(ctx).Top(top).Execute()
Get namespaces with sorting by size.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
top := int32(56) // int32 | Count of entities (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsNamespaceUsage(context.Background()).Top(top).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsNamespaceUsage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsNamespaceUsage`: []ResponsesNamespaceUsage
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsNamespaceUsage`: %v\n", resp)
}Other parameters are passed through a pointer to a apiStatsNamespaceUsageRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| top | int32 | Count of entities |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesSeriesItem StatsNsSeries(ctx, id, timeframe, name).From(from).To(to).Execute()
Get histogram for namespace with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := "id_example" // string | Namespace id in hexadecimal
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsNsSeries(context.Background(), id, timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsNsSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsNsSeries`: []ResponsesSeriesItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsNsSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | Namespace id in hexadecimal | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsNsSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesRollupStats24h StatsRollup24h(ctx).Execute()
Get rollups stats for last 24 hours
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsRollup24h(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsRollup24h``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsRollup24h`: []ResponsesRollupStats24h
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsRollup24h`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiStatsRollup24hRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesSeriesItem StatsSeries(ctx, timeframe, name).From(from).To(to).Execute()
Get histogram with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsSeries(context.Background(), timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsSeries`: []ResponsesSeriesItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesSeriesItem StatsSeriesCumulative(ctx, timeframe, name).From(from).To(to).Execute()
Get cumulative histogram with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsSeriesCumulative(context.Background(), timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsSeriesCumulative``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsSeriesCumulative`: []ResponsesSeriesItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsSeriesCumulative`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsSeriesCumulativeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesSizeGroup StatsSizeGroups(ctx).Execute()
Get blobs count grouped by size
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsSizeGroups(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsSizeGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsSizeGroups`: []ResponsesSizeGroup
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsSizeGroups`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiStatsSizeGroupsRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]map[string][]ResponsesTimeValueItem StatsSquareSize(ctx).From(from).To(to).Execute()
Get histogram for square size distribution
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsSquareSize(context.Background()).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsSquareSize``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsSquareSize`: []map[string][]ResponsesTimeValueItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsSquareSize`: %v\n", resp)
}Other parameters are passed through a pointer to a apiStatsSquareSizeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| from | int32 | Time from in unix timestamp | |
| to | int32 | Time to in unix timestamp |
[]map[string][]ResponsesTimeValueItem
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string][]ResponsesStakingDistributionItem StatsStakingDistribution(ctx).From(from).To(to).Execute()
Get histogram for staking
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsStakingDistribution(context.Background()).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsStakingDistribution``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsStakingDistribution`: map[string][]ResponsesStakingDistributionItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsStakingDistribution`: %v\n", resp)
}Other parameters are passed through a pointer to a apiStatsStakingDistributionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| from | int32 | Time from in unix timestamp | |
| to | int32 | Time to in unix timestamp |
map[string][]ResponsesStakingDistributionItem
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesSeriesItem StatsStakingSeries(ctx, id, timeframe, name).From(from).To(to).Execute()
Get histogram for staking with precomputed stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := "id_example" // string | Validator id
timeframe := "timeframe_example" // string | Timeframe
name := "name_example" // string | Series name
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsStakingSeries(context.Background(), id, timeframe, name).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsStakingSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsStakingSeries`: []ResponsesSeriesItem
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsStakingSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | Validator id | |
| timeframe | string | Timeframe | |
| name | string | Series name |
Other parameters are passed through a pointer to a apiStatsStakingSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string StatsSummary(ctx, table, function).Column(column).From(from).To(to).Execute()
Get value by table and function
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
table := "table_example" // string | Table name
function := "function_example" // string | Function name
column := "column_example" // string | Column name which will be used for computation. Optional for count. (optional)
from := int32(56) // int32 | Time from in unix timestamp (optional)
to := int32(56) // int32 | Time to in unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatsAPI.StatsSummary(context.Background(), table, function).Column(column).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatsAPI.StatsSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatsSummary`: string
fmt.Fprintf(os.Stdout, "Response from `StatsAPI.StatsSummary`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| table | string | Table name | |
| function | string | Function name |
Other parameters are passed through a pointer to a apiStatsSummaryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
column | string | Column name which will be used for computation. Optional for count. | from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
string
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]