File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ type {{.TypeName}} struct {
5757func New(baseURL string) *{{.TypeName}} {
5858 return &{{.TypeName}} {
5959 tzktAPI: api.New(baseURL),
60- tzktEvents: events.NewTzKT(fmt.Sprintf("%s/v1/events ", baseURL)),
60+ tzktEvents: events.NewTzKT(fmt.Sprintf("%s/v1/ws ", baseURL)),
6161 address: "{{ .Contract }}",
6262 {{- range $key, $value := .EntrypointTypes }}
6363 {{ $value.Var }}: make(chan {{ $value.Type }}Tx, 1024),
Original file line number Diff line number Diff line change @@ -46,5 +46,5 @@ const (
4646// urls
4747const (
4848 BaseURL = "https://api.tzkt.io"
49- BaseEventsURL = "https://api.tzkt.io/v1/events "
49+ BaseEventsURL = "https://api.tzkt.io/v1/ws "
5050)
Original file line number Diff line number Diff line change @@ -59,5 +59,5 @@ If you want to write custom client or re-use SignalR in another package you can
5959``` golang
6060import " github.com/dipdup-net/go-lib/tzkt/events/signalr"
6161
62- client := signalr.NewSignalR (" https://api.tzkt.io/v1/events " )
62+ client := signalr.NewSignalR (" https://api.tzkt.io/v1/ws " )
6363```
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type TzKT struct {
2828 wg sync.WaitGroup
2929}
3030
31- // NewTzKT - constructor of `TzKT`. `url` is TzKT events base URL. If it's empty https://api.tzkt.io/v1/events is set.
31+ // NewTzKT - constructor of `TzKT`. `url` is TzKT events base URL. If it's empty https://api.tzkt.io/v1/ws is set.
3232func NewTzKT (url string ) * TzKT {
3333 if url == "" {
3434 url = tzktData .BaseEventsURL
You can’t perform that action at this time.
0 commit comments