All URIs are relative to https://api-mainnet.celenium.io/v1
| Method | HTTP request | Description |
|---|---|---|
| GetRollup | Get /rollup/{id} | Get rollup info |
| GetRollupAllSeries | Get /rollup/stats/series/{timeframe} | Get series for all rollups |
| GetRollupBlobs | Get /rollup/{id}/blobs | Get rollup blobs |
| GetRollupBySlug | Get /rollup/slug/{slug} | Get rollup by slug |
| GetRollupDistribution | Get /rollup/{id}/distribution/{name}/{timeframe} | Get rollup distribution |
| GetRollupNamespaces | Get /rollup/{id}/namespaces | Get rollup namespaces info |
| GetRollupProviders | Get /rollup/{id}/providers | Get rollup providers info |
| GetRollupStats | Get /rollup/{id}/stats/{name}/{timeframe} | Get rollup stats |
| GetRollupsCount | Get /rollup/count | Get count of rollups in network |
| ListRollup | Get /rollup | List rollups info |
| ListRollup24h | Get /rollup/day | List rollups info with stats by previous 24 hours |
| RollupExport | Get /rollup/{id}/export | Export rollup blobs |
| RollupGroupedStatistics | Get /rollup/group | Rollup Grouped Statistics |
ResponsesRollup GetRollup(ctx, id).Execute()
Get rollup info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollup(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollup`: ResponsesRollup
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity |
Other parameters are passed through a pointer to a apiGetRollupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesRollupAllSeriesResponse GetRollupAllSeries(ctx, timeframe).Execute()
Get series for all rollups
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
timeframe := "timeframe_example" // string | Timeframe
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollupAllSeries(context.Background(), timeframe).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupAllSeries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupAllSeries`: []ResponsesRollupAllSeriesResponse
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupAllSeries`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| timeframe | string | Timeframe |
Other parameters are passed through a pointer to a apiGetRollupAllSeriesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
[]ResponsesRollupAllSeriesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesBlobLog GetRollupBlobs(ctx, id).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Joins(joins).Execute()
Get rollup blobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
limit := int32(56) // int32 | Count of requested entities (optional)
offset := int32(56) // int32 | Offset (optional)
sort := "sort_example" // string | Sort order. Default: desc (optional)
sortBy := "sortBy_example" // string | Sort field. If it's empty internal id is used (optional)
joins := true // bool | Flag indicating whether entities of transaction and signer should be attached or not. Default: true (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollupBlobs(context.Background(), id).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Joins(joins).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupBlobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupBlobs`: []ResponsesBlobLog
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupBlobs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity |
Other parameters are passed through a pointer to a apiGetRollupBlobsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | Count of requested entities | offset | int32 | Offset | sort | string | Sort order. Default: desc | sortBy | string | Sort field. If it's empty internal id is used | joins | bool | Flag indicating whether entities of transaction and signer should be attached or not. Default: true |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponsesRollup GetRollupBySlug(ctx, slug).Execute()
Get rollup by slug
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
slug := "slug_example" // string | Slug
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollupBySlug(context.Background(), slug).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupBySlug``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupBySlug`: ResponsesRollup
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupBySlug`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| slug | string | Slug |
Other parameters are passed through a pointer to a apiGetRollupBySlugRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesDistributionItem GetRollupDistribution(ctx, id, name, timeframe).Execute()
Get rollup distribution
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
name := "name_example" // string | Series name
timeframe := "timeframe_example" // string | Timeframe
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollupDistribution(context.Background(), id, name, timeframe).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupDistribution``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupDistribution`: []ResponsesDistributionItem
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupDistribution`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity | |
| name | string | Series name | |
| timeframe | string | Timeframe |
Other parameters are passed through a pointer to a apiGetRollupDistributionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesNamespace GetRollupNamespaces(ctx, id).Limit(limit).Offset(offset).Execute()
Get rollup namespaces info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
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.RollupAPI.GetRollupNamespaces(context.Background(), id).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupNamespaces``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupNamespaces`: []ResponsesNamespace
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupNamespaces`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity |
Other parameters are passed through a pointer to a apiGetRollupNamespacesRequest 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]
[]ResponsesRollupProvider GetRollupProviders(ctx, id).Execute()
Get rollup providers info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.GetRollupProviders(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupProviders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupProviders`: []ResponsesRollupProvider
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupProviders`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity |
Other parameters are passed through a pointer to a apiGetRollupProvidersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
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 GetRollupStats(ctx, id, name, timeframe).From(from).To(to).Execute()
Get rollup stats
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
name := "name_example" // string | Series name
timeframe := "timeframe_example" // string | Timeframe
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.RollupAPI.GetRollupStats(context.Background(), id, name, timeframe).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupStats``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupStats`: []ResponsesHistogramItem
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupStats`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity | |
| name | string | Series name | |
| timeframe | string | Timeframe |
Other parameters are passed through a pointer to a apiGetRollupStatsRequest 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]
int32 GetRollupsCount(ctx).Execute()
Get count of rollups in network
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.RollupAPI.GetRollupsCount(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.GetRollupsCount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRollupsCount`: int32
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.GetRollupsCount`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetRollupsCountRequest struct via the builder pattern
int32
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesRollupWithStats ListRollup(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Tags(tags).Stack(stack).Provider(provider).IsActive(isActive).Execute()
List rollups info
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)
sort := "sort_example" // string | Sort order. Default: desc (optional)
sortBy := "sortBy_example" // string | Sort field. Default: size (optional)
category := "category_example" // string | Comma-separated rollup category list (optional)
tags := "tags_example" // string | Comma-separated rollup tags list (optional)
stack := "stack_example" // string | Comma-separated rollup stack list (optional)
provider := "provider_example" // string | Comma-separated rollup provider list (optional)
isActive := true // bool | If true, shows rollups with activity over the last month (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.ListRollup(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Tags(tags).Stack(stack).Provider(provider).IsActive(isActive).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.ListRollup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRollup`: []ResponsesRollupWithStats
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.ListRollup`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListRollupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | Count of requested entities | |
| offset | int32 | Offset | |
| sort | string | Sort order. Default: desc | |
| sortBy | string | Sort field. Default: size | |
| category | string | Comma-separated rollup category list | |
| tags | string | Comma-separated rollup tags list | |
| stack | string | Comma-separated rollup stack list | |
| provider | string | Comma-separated rollup provider list | |
| isActive | bool | If true, shows rollups with activity over the last month |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesRollupWithDayStats ListRollup24h(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Tags(tags).Stack(stack).Provider(provider).Execute()
List rollups info with stats by previous 24 hours
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)
sort := "sort_example" // string | Sort order. Default: desc (optional)
sortBy := "sortBy_example" // string | Sort field. Default: mb_price (optional)
category := "category_example" // string | Comma-separated rollup category list (optional)
tags := "tags_example" // string | Comma-separated rollup tags list (optional)
stack := "stack_example" // string | Comma-separated rollup stack list (optional)
provider := "provider_example" // string | Comma-separated rollup provider list (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.ListRollup24h(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Tags(tags).Stack(stack).Provider(provider).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.ListRollup24h``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRollup24h`: []ResponsesRollupWithDayStats
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.ListRollup24h`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListRollup24hRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | Count of requested entities | |
| offset | int32 | Offset | |
| sort | string | Sort order. Default: desc | |
| sortBy | string | Sort field. Default: mb_price | |
| category | string | Comma-separated rollup category list | |
| tags | string | Comma-separated rollup tags list | |
| stack | string | Comma-separated rollup stack list | |
| provider | string | Comma-separated rollup provider list |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RollupExport(ctx, id).From(from).To(to).Execute()
Export rollup blobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
id := int32(56) // int32 | Internal identity
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)
r, err := apiClient.RollupAPI.RollupExport(context.Background(), id).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.RollupExport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Internal identity |
Other parameters are passed through a pointer to a apiRollupExportRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
from | int32 | Time from in unix timestamp | to | int32 | Time to in unix timestamp |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResponsesRollupGroupedStats RollupGroupedStatistics(ctx).Func_(func_).Column(column).Execute()
Rollup Grouped Statistics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/celenium-io/celenium-api-go"
)
func main() {
func_ := "func__example" // string | Aggregate function (optional)
column := "column_example" // string | Group column (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RollupAPI.RollupGroupedStatistics(context.Background()).Func_(func_).Column(column).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.RollupGroupedStatistics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RollupGroupedStatistics`: []ResponsesRollupGroupedStats
fmt.Fprintf(os.Stdout, "Response from `RollupAPI.RollupGroupedStatistics`: %v\n", resp)
}Other parameters are passed through a pointer to a apiRollupGroupedStatisticsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| func_ | string | Aggregate function | |
| column | string | Group column |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]