Skip to content

Commit 58d20a9

Browse files
TzKT private API
1 parent e82adb4 commit 58d20a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tzkt/api/private.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// GetAccountsMetadata -
1010
func (tzkt *API) GetAccountsMetadata(ctx context.Context, filters map[string]string) ([]data.AccountMetadata, error) {
1111
var raw []data.Metadata[data.AccountMetadata]
12-
if err := tzkt.json(ctx, "/v1/metadata/accounts", filters, true, &raw); err != nil {
12+
if err := tzkt.json(ctx, "/v1/extras/accounts", filters, true, &raw); err != nil {
1313
return nil, err
1414
}
1515

tzkt/data/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type MetadataConstraint interface {
7676
// Metadata -
7777
type Metadata[T MetadataConstraint] struct {
7878
Key string `json:"key"`
79-
Value T `json:"metadata"`
79+
Value T `json:"extras"`
8080
}
8181

8282
// Account -

0 commit comments

Comments
 (0)