All URIs are relative to http://..
Method | HTTP request | Description |
---|---|---|
GetEventsBlockHashBlockhash | Get /events/block-hash/{blockHash} | Get contract events for a block |
GetEventsContractContractaddress | Get /events/contract/{contractAddress} | Get events for a contract within a counter range |
GetEventsContractContractaddressCurrentCount | Get /events/contract/{contractAddress}/current-count | Get current value of the events counter for a contract |
GetEventsTxIdTxid | Get /events/tx-id/{txId} | Get contract events for a transaction |
ContractEventsByBlockHash GetEventsBlockHashBlockhash(ctx, blockHash).Group(group).Execute()
Get contract events for a block
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
blockHash := "blockHash_example" // string |
group := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsApi.GetEventsBlockHashBlockhash(context.Background(), blockHash).Group(group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GetEventsBlockHashBlockhash``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsBlockHashBlockhash`: ContractEventsByBlockHash
fmt.Fprintf(os.Stdout, "Response from `EventsApi.GetEventsBlockHashBlockhash`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
blockHash | string |
Other parameters are passed through a pointer to a apiGetEventsBlockHashBlockhashRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
group | 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]
ContractEvents GetEventsContractContractaddress(ctx, contractAddress).Start(start).Limit(limit).Group(group).Execute()
Get events for a contract within a counter range
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
contractAddress := "contractAddress_example" // string |
start := int32(56) // int32 |
limit := int32(56) // int32 | (optional)
group := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsApi.GetEventsContractContractaddress(context.Background(), contractAddress).Start(start).Limit(limit).Group(group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GetEventsContractContractaddress``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsContractContractaddress`: ContractEvents
fmt.Fprintf(os.Stdout, "Response from `EventsApi.GetEventsContractContractaddress`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
contractAddress | string |
Other parameters are passed through a pointer to a apiGetEventsContractContractaddressRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
start | int32 | | limit | int32 | | group | 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]
int32 GetEventsContractContractaddressCurrentCount(ctx, contractAddress).Execute()
Get current value of the events counter for a contract
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
contractAddress := "contractAddress_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsApi.GetEventsContractContractaddressCurrentCount(context.Background(), contractAddress).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GetEventsContractContractaddressCurrentCount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsContractContractaddressCurrentCount`: int32
fmt.Fprintf(os.Stdout, "Response from `EventsApi.GetEventsContractContractaddressCurrentCount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
contractAddress | string |
Other parameters are passed through a pointer to a apiGetEventsContractContractaddressCurrentCountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
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]
ContractEventsByTxId GetEventsTxIdTxid(ctx, txId).Group(group).Execute()
Get contract events for a transaction
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
txId := "txId_example" // string |
group := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EventsApi.GetEventsTxIdTxid(context.Background(), txId).Group(group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GetEventsTxIdTxid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEventsTxIdTxid`: ContractEventsByTxId
fmt.Fprintf(os.Stdout, "Response from `EventsApi.GetEventsTxIdTxid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
txId | string |
Other parameters are passed through a pointer to a apiGetEventsTxIdTxidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
group | 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]