API Specification for ACES Listeners that read data on a blockchain and forward transaction events to registered subscribers.
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen
Put the package under your project folder and add the following in import:
"./arkaces/aces-listener-api"
All URIs are relative to https://localhost/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AcesListenerApi | StatusGet | Get /status | Get Health of node. |
| AcesListenerApi | SubscriptionsIdEventsGet | Get /subscriptions/{id}/events | List Subscription Events |
| AcesListenerApi | SubscriptionsIdGet | Get /subscriptions/{id} | Gets Subscription |
| AcesListenerApi | SubscriptionsIdUnsubscribesPost | Post /subscriptions/{id}/unsubscribes | Create an Unsubscription. |
| AcesListenerApi | SubscriptionsPost | Post /subscriptions | Registers a subscriber node to receive blockchain events. |
- FieldError
- Health
- InlineResponse200
- NotFoundError
- Subscription
- SubscriptionEvent
- SubscriptionRequest
- SubscriptionUnsubscribe
- ValidationError
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.TODO(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)