All URIs are relative to http://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
PublicMinersDealsMinerGet | Get /public/miners/deals/{miner} | Get all miners deals |
PublicMinersStatsMinerGet | Get /public/miners/stats/{miner} | Get miner stats |
PublicMinersDealsMinerGet(ctx, miner).Execute()
Get all miners deals
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
miner := "miner_example" // string | Filter by miner
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MinerApi.PublicMinersDealsMinerGet(context.Background(), miner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MinerApi.PublicMinersDealsMinerGet``: %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. | |
miner | string | Filter by miner |
Other parameters are passed through a pointer to a apiPublicMinersDealsMinerGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PublicMinersStatsMinerGet(ctx, miner).Execute()
Get miner stats
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
miner := "miner_example" // string | Filter by miner
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MinerApi.PublicMinersStatsMinerGet(context.Background(), miner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MinerApi.PublicMinersStatsMinerGet``: %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. | |
miner | string | Filter by miner |
Other parameters are passed through a pointer to a apiPublicMinersStatsMinerGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]