All URIs are relative to https://api-mainnet.celenium.io/v1
Method | HTTP request | Description |
---|---|---|
GetConstants | Get /constants | Get network constants |
GetEnums | Get /enums | Get celenium enumerators |
Head | Get /head | Get current indexer head |
ResponsesConstants GetConstants(ctx).Execute()
Get network constants
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.GeneralAPI.GetConstants(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GeneralAPI.GetConstants``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConstants`: ResponsesConstants
fmt.Fprintf(os.Stdout, "Response from `GeneralAPI.GetConstants`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetConstantsRequest 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]
ResponsesEnums GetEnums(ctx).Execute()
Get celenium enumerators
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.GeneralAPI.GetEnums(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GeneralAPI.GetEnums``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnums`: ResponsesEnums
fmt.Fprintf(os.Stdout, "Response from `GeneralAPI.GetEnums`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetEnumsRequest 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]
ResponsesState Head(ctx).Execute()
Get current indexer head
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.GeneralAPI.Head(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GeneralAPI.Head``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Head`: ResponsesState
fmt.Fprintf(os.Stdout, "Response from `GeneralAPI.Head`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiHeadRequest 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]