@b3dotfun/sdk 0.0.18 → 0.0.19-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -51
- package/dist/cjs/anyspend/react/components/AnySpend.js +21 -3
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +0 -1
- package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +4 -4
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +2 -3
- package/dist/cjs/anyspend/services/anyspend.d.ts +1 -1
- package/dist/cjs/anyspend/services/anyspend.js +1 -2
- package/dist/cjs/anyspend/types/api.d.ts +1 -16
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
- package/dist/cjs/global-account/react/components/index.d.ts +1 -0
- package/dist/cjs/global-account/react/components/index.js +4 -2
- package/dist/cjs/global-account/react/components/ui/Loading.js +1 -1
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +360 -313
- package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +398 -398
- package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/dist/esm/anyspend/react/components/AnySpend.js +21 -3
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +0 -1
- package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +4 -4
- package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +2 -3
- package/dist/esm/anyspend/services/anyspend.d.ts +1 -1
- package/dist/esm/anyspend/services/anyspend.js +1 -2
- package/dist/esm/anyspend/types/api.d.ts +1 -16
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +3 -3
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
- package/dist/esm/global-account/react/components/index.d.ts +1 -0
- package/dist/esm/global-account/react/components/index.js +1 -0
- package/dist/esm/global-account/react/components/ui/Loading.js +1 -1
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +363 -316
- package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/client.gen.js +1 -1
- package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/sdk.gen.js +399 -399
- package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/types/anyspend/services/anyspend.d.ts +1 -1
- package/dist/types/anyspend/types/api.d.ts +1 -16
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/types/global-account/react/components/index.d.ts +1 -0
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/types/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/package.json +2 -2
- package/src/anyspend/react/components/AnySpend.tsx +25 -7
- package/src/anyspend/react/components/AnySpendCustom.tsx +0 -1
- package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +2 -2
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +0 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +0 -1
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -6
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +0 -1
- package/src/anyspend/react/hooks/useStripeSupport.ts +3 -4
- package/src/anyspend/react/providers/AnyspendProvider.tsx +5 -9
- package/src/anyspend/services/anyspend.ts +0 -2
- package/src/anyspend/types/api.ts +1 -16
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +1 -0
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +11 -5
- package/src/global-account/react/components/index.ts +1 -0
- package/src/global-account/react/components/ui/Loading.tsx +1 -1
- package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1886 -1220
- package/src/shared/thirdweb/generated/client.gen.ts +11 -4
- package/src/shared/thirdweb/generated/sdk.gen.ts +1083 -809
- package/src/shared/thirdweb/generated/types.gen.ts +3953 -3862
- /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
- /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
- /package/dist/types/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/src/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.tsx +0 -0
|
@@ -1,163 +1,295 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import type { Client, Options as ClientOptions, TDataShape } from
|
|
4
|
-
import { client as _heyApiClient } from
|
|
5
|
-
import type {
|
|
3
|
+
import type { Client, Options as ClientOptions, TDataShape } from "@hey-api/client-fetch";
|
|
4
|
+
import { client as _heyApiClient } from "./client.gen";
|
|
5
|
+
import type {
|
|
6
|
+
DeleteV1WebhooksByWebhookIdData,
|
|
7
|
+
DeleteV1WebhooksByWebhookIdError,
|
|
8
|
+
DeleteV1WebhooksByWebhookIdResponse,
|
|
9
|
+
GetV1BlocksData,
|
|
10
|
+
GetV1BlocksError,
|
|
11
|
+
GetV1BlocksResponse,
|
|
12
|
+
GetV1ContractsAbiByContractAddressData,
|
|
13
|
+
GetV1ContractsAbiByContractAddressError,
|
|
14
|
+
GetV1ContractsAbiByContractAddressResponse,
|
|
15
|
+
GetV1ContractsMetadataByContractAddressData,
|
|
16
|
+
GetV1ContractsMetadataByContractAddressError,
|
|
17
|
+
GetV1ContractsMetadataByContractAddressResponse,
|
|
18
|
+
GetV1EventsByContractAddressBySignatureData,
|
|
19
|
+
GetV1EventsByContractAddressBySignatureError,
|
|
20
|
+
GetV1EventsByContractAddressBySignatureResponse,
|
|
21
|
+
GetV1EventsByContractAddressData,
|
|
22
|
+
GetV1EventsByContractAddressError,
|
|
23
|
+
GetV1EventsByContractAddressResponse,
|
|
24
|
+
GetV1EventsData,
|
|
25
|
+
GetV1EventsError,
|
|
26
|
+
GetV1EventsResponse,
|
|
27
|
+
GetV1NftsBalanceByOwnerAddressData,
|
|
28
|
+
GetV1NftsBalanceByOwnerAddressResponse,
|
|
29
|
+
GetV1NftsByContractAddressByTokenIdData,
|
|
30
|
+
GetV1NftsByContractAddressByTokenIdError,
|
|
31
|
+
GetV1NftsByContractAddressByTokenIdResponse,
|
|
32
|
+
GetV1NftsByContractAddressData,
|
|
33
|
+
GetV1NftsByContractAddressError,
|
|
34
|
+
GetV1NftsByContractAddressResponse,
|
|
35
|
+
GetV1NftsCollectionsByContractAddressData,
|
|
36
|
+
GetV1NftsCollectionsByContractAddressError,
|
|
37
|
+
GetV1NftsCollectionsByContractAddressResponse,
|
|
38
|
+
GetV1NftsData,
|
|
39
|
+
GetV1NftsError,
|
|
40
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdData,
|
|
41
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdError,
|
|
42
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse,
|
|
43
|
+
GetV1NftsMetadataRefreshByContractAddressData,
|
|
44
|
+
GetV1NftsMetadataRefreshByContractAddressError,
|
|
45
|
+
GetV1NftsMetadataRefreshByContractAddressResponse,
|
|
46
|
+
GetV1NftsOwnersByContractAddressByTokenIdData,
|
|
47
|
+
GetV1NftsOwnersByContractAddressByTokenIdError,
|
|
48
|
+
GetV1NftsOwnersByContractAddressByTokenIdResponse,
|
|
49
|
+
GetV1NftsOwnersByContractAddressData,
|
|
50
|
+
GetV1NftsOwnersByContractAddressError,
|
|
51
|
+
GetV1NftsOwnersByContractAddressResponse,
|
|
52
|
+
GetV1NftsResponse,
|
|
53
|
+
GetV1NftsTransfersByContractAddressByTokenIdData,
|
|
54
|
+
GetV1NftsTransfersByContractAddressByTokenIdError,
|
|
55
|
+
GetV1NftsTransfersByContractAddressByTokenIdResponse,
|
|
56
|
+
GetV1NftsTransfersByContractAddressData,
|
|
57
|
+
GetV1NftsTransfersByContractAddressError,
|
|
58
|
+
GetV1NftsTransfersByContractAddressResponse,
|
|
59
|
+
GetV1NftsTransfersData,
|
|
60
|
+
GetV1NftsTransfersError,
|
|
61
|
+
GetV1NftsTransfersResponse,
|
|
62
|
+
GetV1NftsTransfersTransactionByTransactionHashData,
|
|
63
|
+
GetV1NftsTransfersTransactionByTransactionHashError,
|
|
64
|
+
GetV1NftsTransfersTransactionByTransactionHashResponse,
|
|
65
|
+
GetV1ResolveByInputData,
|
|
66
|
+
GetV1ResolveByInputError,
|
|
67
|
+
GetV1ResolveByInputResponse,
|
|
68
|
+
GetV1TokensErc1155ByOwnerAddressData,
|
|
69
|
+
GetV1TokensErc1155ByOwnerAddressResponse,
|
|
70
|
+
GetV1TokensErc20ByOwnerAddressData,
|
|
71
|
+
GetV1TokensErc20ByOwnerAddressResponse,
|
|
72
|
+
GetV1TokensErc721ByOwnerAddressData,
|
|
73
|
+
GetV1TokensErc721ByOwnerAddressResponse,
|
|
74
|
+
GetV1TokensLookupData,
|
|
75
|
+
GetV1TokensLookupResponse,
|
|
76
|
+
GetV1TokensPriceData,
|
|
77
|
+
GetV1TokensPriceResponse,
|
|
78
|
+
GetV1TokensPriceSupportedData,
|
|
79
|
+
GetV1TokensPriceSupportedResponse,
|
|
80
|
+
GetV1TokensTransfersByContractAddressData,
|
|
81
|
+
GetV1TokensTransfersByContractAddressError,
|
|
82
|
+
GetV1TokensTransfersByContractAddressResponse,
|
|
83
|
+
GetV1TokensTransfersData,
|
|
84
|
+
GetV1TokensTransfersError,
|
|
85
|
+
GetV1TokensTransfersResponse,
|
|
86
|
+
GetV1TokensTransfersTransactionByTransactionHashData,
|
|
87
|
+
GetV1TokensTransfersTransactionByTransactionHashError,
|
|
88
|
+
GetV1TokensTransfersTransactionByTransactionHashResponse,
|
|
89
|
+
GetV1TransactionsByContractAddressBySignatureData,
|
|
90
|
+
GetV1TransactionsByContractAddressBySignatureError,
|
|
91
|
+
GetV1TransactionsByContractAddressBySignatureResponse,
|
|
92
|
+
GetV1TransactionsByContractAddressData,
|
|
93
|
+
GetV1TransactionsByContractAddressError,
|
|
94
|
+
GetV1TransactionsByContractAddressResponse,
|
|
95
|
+
GetV1TransactionsData,
|
|
96
|
+
GetV1TransactionsError,
|
|
97
|
+
GetV1TransactionsResponse,
|
|
98
|
+
GetV1WalletsByWalletAddressTransactionsData,
|
|
99
|
+
GetV1WalletsByWalletAddressTransactionsError,
|
|
100
|
+
GetV1WalletsByWalletAddressTransactionsResponse,
|
|
101
|
+
GetV1WebhooksData,
|
|
102
|
+
GetV1WebhooksError,
|
|
103
|
+
GetV1WebhooksResponse,
|
|
104
|
+
PatchV1WebhooksByWebhookIdData,
|
|
105
|
+
PatchV1WebhooksByWebhookIdError,
|
|
106
|
+
PatchV1WebhooksByWebhookIdResponse,
|
|
107
|
+
PostV1DecodeByContractAddressData,
|
|
108
|
+
PostV1DecodeByContractAddressError,
|
|
109
|
+
PostV1DecodeByContractAddressResponse,
|
|
110
|
+
PostV1WebhooksData,
|
|
111
|
+
PostV1WebhooksError,
|
|
112
|
+
PostV1WebhooksResponse,
|
|
113
|
+
PostV1WebhooksTestData,
|
|
114
|
+
PostV1WebhooksTestError,
|
|
115
|
+
PostV1WebhooksTestResponse,
|
|
116
|
+
} from "./types.gen";
|
|
6
117
|
|
|
7
|
-
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
118
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<
|
|
119
|
+
TData,
|
|
120
|
+
ThrowOnError
|
|
121
|
+
> & {
|
|
122
|
+
/**
|
|
123
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
124
|
+
* individual options. This might be also useful if you want to implement a
|
|
125
|
+
* custom client.
|
|
126
|
+
*/
|
|
127
|
+
client?: Client;
|
|
128
|
+
/**
|
|
129
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
130
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
131
|
+
*/
|
|
132
|
+
meta?: Record<string, unknown>;
|
|
19
133
|
};
|
|
20
134
|
|
|
21
135
|
/**
|
|
22
136
|
* Get webhooks
|
|
23
137
|
* Get a list of webhooks or a single webhook by ID
|
|
24
138
|
*/
|
|
25
|
-
export const getV1Webhooks = <ThrowOnError extends boolean = false>(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
139
|
+
export const getV1Webhooks = <ThrowOnError extends boolean = false>(
|
|
140
|
+
options?: Options<GetV1WebhooksData, ThrowOnError>,
|
|
141
|
+
) => {
|
|
142
|
+
return (options?.client ?? _heyApiClient).get<GetV1WebhooksResponse, GetV1WebhooksError, ThrowOnError>({
|
|
143
|
+
security: [
|
|
144
|
+
{
|
|
145
|
+
name: "x-client-id",
|
|
146
|
+
type: "apiKey",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
scheme: "bearer",
|
|
150
|
+
type: "http",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
in: "query",
|
|
154
|
+
name: "clientId",
|
|
155
|
+
type: "apiKey",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
url: "/v1/webhooks",
|
|
159
|
+
...options,
|
|
160
|
+
});
|
|
45
161
|
};
|
|
46
162
|
|
|
47
163
|
/**
|
|
48
164
|
* Create webhook
|
|
49
165
|
* Create a new webhook. In order to receive decoded data, specify a partial ABI in the filters.
|
|
50
166
|
*/
|
|
51
|
-
export const postV1Webhooks = <ThrowOnError extends boolean = false>(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
167
|
+
export const postV1Webhooks = <ThrowOnError extends boolean = false>(
|
|
168
|
+
options?: Options<PostV1WebhooksData, ThrowOnError>,
|
|
169
|
+
) => {
|
|
170
|
+
return (options?.client ?? _heyApiClient).post<PostV1WebhooksResponse, PostV1WebhooksError, ThrowOnError>({
|
|
171
|
+
security: [
|
|
172
|
+
{
|
|
173
|
+
name: "x-client-id",
|
|
174
|
+
type: "apiKey",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
scheme: "bearer",
|
|
178
|
+
type: "http",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
in: "query",
|
|
182
|
+
name: "clientId",
|
|
183
|
+
type: "apiKey",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
url: "/v1/webhooks",
|
|
187
|
+
...options,
|
|
188
|
+
headers: {
|
|
189
|
+
"Content-Type": "application/json",
|
|
190
|
+
...options?.headers,
|
|
191
|
+
},
|
|
192
|
+
});
|
|
75
193
|
};
|
|
76
194
|
|
|
77
195
|
/**
|
|
78
196
|
* Delete webhook
|
|
79
197
|
* Delete a webhook. This action cannot be undone.
|
|
80
198
|
*/
|
|
81
|
-
export const deleteV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
199
|
+
export const deleteV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
|
|
200
|
+
options: Options<DeleteV1WebhooksByWebhookIdData, ThrowOnError>,
|
|
201
|
+
) => {
|
|
202
|
+
return (options.client ?? _heyApiClient).delete<
|
|
203
|
+
DeleteV1WebhooksByWebhookIdResponse,
|
|
204
|
+
DeleteV1WebhooksByWebhookIdError,
|
|
205
|
+
ThrowOnError
|
|
206
|
+
>({
|
|
207
|
+
security: [
|
|
208
|
+
{
|
|
209
|
+
name: "x-client-id",
|
|
210
|
+
type: "apiKey",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
scheme: "bearer",
|
|
214
|
+
type: "http",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
in: "query",
|
|
218
|
+
name: "clientId",
|
|
219
|
+
type: "apiKey",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
url: "/v1/webhooks/{webhook_id}",
|
|
223
|
+
...options,
|
|
224
|
+
});
|
|
101
225
|
};
|
|
102
226
|
|
|
103
227
|
/**
|
|
104
228
|
* Update webhook
|
|
105
229
|
* Update a webhook.
|
|
106
230
|
*/
|
|
107
|
-
export const patchV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
231
|
+
export const patchV1WebhooksByWebhookId = <ThrowOnError extends boolean = false>(
|
|
232
|
+
options: Options<PatchV1WebhooksByWebhookIdData, ThrowOnError>,
|
|
233
|
+
) => {
|
|
234
|
+
return (options.client ?? _heyApiClient).patch<
|
|
235
|
+
PatchV1WebhooksByWebhookIdResponse,
|
|
236
|
+
PatchV1WebhooksByWebhookIdError,
|
|
237
|
+
ThrowOnError
|
|
238
|
+
>({
|
|
239
|
+
security: [
|
|
240
|
+
{
|
|
241
|
+
name: "x-client-id",
|
|
242
|
+
type: "apiKey",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
scheme: "bearer",
|
|
246
|
+
type: "http",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
in: "query",
|
|
250
|
+
name: "clientId",
|
|
251
|
+
type: "apiKey",
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
url: "/v1/webhooks/{webhook_id}",
|
|
255
|
+
...options,
|
|
256
|
+
headers: {
|
|
257
|
+
"Content-Type": "application/json",
|
|
258
|
+
...options?.headers,
|
|
259
|
+
},
|
|
260
|
+
});
|
|
131
261
|
};
|
|
132
262
|
|
|
133
263
|
/**
|
|
134
264
|
* Test webhook
|
|
135
265
|
* Test your webhook URL. This will send a test event to the webhook URL signed with an example secret 'test123'. NB! The payload does not necessarily match your webhook filters. You can however use it to test signature verification and payload format handling.
|
|
136
266
|
*/
|
|
137
|
-
export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
267
|
+
export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(
|
|
268
|
+
options?: Options<PostV1WebhooksTestData, ThrowOnError>,
|
|
269
|
+
) => {
|
|
270
|
+
return (options?.client ?? _heyApiClient).post<PostV1WebhooksTestResponse, PostV1WebhooksTestError, ThrowOnError>({
|
|
271
|
+
security: [
|
|
272
|
+
{
|
|
273
|
+
name: "x-client-id",
|
|
274
|
+
type: "apiKey",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
scheme: "bearer",
|
|
278
|
+
type: "http",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
in: "query",
|
|
282
|
+
name: "clientId",
|
|
283
|
+
type: "apiKey",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
url: "/v1/webhooks/test",
|
|
287
|
+
...options,
|
|
288
|
+
headers: {
|
|
289
|
+
"Content-Type": "application/json",
|
|
290
|
+
...options?.headers,
|
|
291
|
+
},
|
|
292
|
+
});
|
|
161
293
|
};
|
|
162
294
|
|
|
163
295
|
/**
|
|
@@ -165,259 +297,301 @@ export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options
|
|
|
165
297
|
* Get events
|
|
166
298
|
*/
|
|
167
299
|
export const getV1Events = <ThrowOnError extends boolean = false>(options?: Options<GetV1EventsData, ThrowOnError>) => {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
300
|
+
return (options?.client ?? _heyApiClient).get<GetV1EventsResponse, GetV1EventsError, ThrowOnError>({
|
|
301
|
+
security: [
|
|
302
|
+
{
|
|
303
|
+
name: "x-client-id",
|
|
304
|
+
type: "apiKey",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
scheme: "bearer",
|
|
308
|
+
type: "http",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
in: "query",
|
|
312
|
+
name: "clientId",
|
|
313
|
+
type: "apiKey",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
url: "/v1/events",
|
|
317
|
+
...options,
|
|
318
|
+
});
|
|
187
319
|
};
|
|
188
320
|
|
|
189
321
|
/**
|
|
190
322
|
* Get contract events
|
|
191
323
|
* Get contract events
|
|
192
324
|
*/
|
|
193
|
-
export const getV1EventsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
325
|
+
export const getV1EventsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
326
|
+
options: Options<GetV1EventsByContractAddressData, ThrowOnError>,
|
|
327
|
+
) => {
|
|
328
|
+
return (options.client ?? _heyApiClient).get<
|
|
329
|
+
GetV1EventsByContractAddressResponse,
|
|
330
|
+
GetV1EventsByContractAddressError,
|
|
331
|
+
ThrowOnError
|
|
332
|
+
>({
|
|
333
|
+
security: [
|
|
334
|
+
{
|
|
335
|
+
name: "x-client-id",
|
|
336
|
+
type: "apiKey",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
scheme: "bearer",
|
|
340
|
+
type: "http",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
in: "query",
|
|
344
|
+
name: "clientId",
|
|
345
|
+
type: "apiKey",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
url: "/v1/events/{contractAddress}",
|
|
349
|
+
...options,
|
|
350
|
+
});
|
|
213
351
|
};
|
|
214
352
|
|
|
215
353
|
/**
|
|
216
354
|
* Get contract events with specific signature
|
|
217
355
|
* Get specific contract events
|
|
218
356
|
*/
|
|
219
|
-
export const getV1EventsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
357
|
+
export const getV1EventsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
|
|
358
|
+
options: Options<GetV1EventsByContractAddressBySignatureData, ThrowOnError>,
|
|
359
|
+
) => {
|
|
360
|
+
return (options.client ?? _heyApiClient).get<
|
|
361
|
+
GetV1EventsByContractAddressBySignatureResponse,
|
|
362
|
+
GetV1EventsByContractAddressBySignatureError,
|
|
363
|
+
ThrowOnError
|
|
364
|
+
>({
|
|
365
|
+
security: [
|
|
366
|
+
{
|
|
367
|
+
name: "x-client-id",
|
|
368
|
+
type: "apiKey",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
scheme: "bearer",
|
|
372
|
+
type: "http",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
in: "query",
|
|
376
|
+
name: "clientId",
|
|
377
|
+
type: "apiKey",
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
url: "/v1/events/{contractAddress}/{signature}",
|
|
381
|
+
...options,
|
|
382
|
+
});
|
|
239
383
|
};
|
|
240
384
|
|
|
241
385
|
/**
|
|
242
386
|
* Get transactions
|
|
243
387
|
* Get transactions
|
|
244
388
|
*/
|
|
245
|
-
export const getV1Transactions = <ThrowOnError extends boolean = false>(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
389
|
+
export const getV1Transactions = <ThrowOnError extends boolean = false>(
|
|
390
|
+
options?: Options<GetV1TransactionsData, ThrowOnError>,
|
|
391
|
+
) => {
|
|
392
|
+
return (options?.client ?? _heyApiClient).get<GetV1TransactionsResponse, GetV1TransactionsError, ThrowOnError>({
|
|
393
|
+
security: [
|
|
394
|
+
{
|
|
395
|
+
name: "x-client-id",
|
|
396
|
+
type: "apiKey",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
scheme: "bearer",
|
|
400
|
+
type: "http",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
in: "query",
|
|
404
|
+
name: "clientId",
|
|
405
|
+
type: "apiKey",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
url: "/v1/transactions",
|
|
409
|
+
...options,
|
|
410
|
+
});
|
|
265
411
|
};
|
|
266
412
|
|
|
267
413
|
/**
|
|
268
414
|
* Get contract transactions
|
|
269
415
|
* Get contract transactions
|
|
270
416
|
*/
|
|
271
|
-
export const getV1TransactionsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
417
|
+
export const getV1TransactionsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
418
|
+
options: Options<GetV1TransactionsByContractAddressData, ThrowOnError>,
|
|
419
|
+
) => {
|
|
420
|
+
return (options.client ?? _heyApiClient).get<
|
|
421
|
+
GetV1TransactionsByContractAddressResponse,
|
|
422
|
+
GetV1TransactionsByContractAddressError,
|
|
423
|
+
ThrowOnError
|
|
424
|
+
>({
|
|
425
|
+
security: [
|
|
426
|
+
{
|
|
427
|
+
name: "x-client-id",
|
|
428
|
+
type: "apiKey",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
scheme: "bearer",
|
|
432
|
+
type: "http",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
in: "query",
|
|
436
|
+
name: "clientId",
|
|
437
|
+
type: "apiKey",
|
|
438
|
+
},
|
|
439
|
+
],
|
|
440
|
+
url: "/v1/transactions/{contractAddress}",
|
|
441
|
+
...options,
|
|
442
|
+
});
|
|
291
443
|
};
|
|
292
444
|
|
|
293
445
|
/**
|
|
294
446
|
* Get contract transactions with specific signature
|
|
295
447
|
* Get specific contract transactions
|
|
296
448
|
*/
|
|
297
|
-
export const getV1TransactionsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
449
|
+
export const getV1TransactionsByContractAddressBySignature = <ThrowOnError extends boolean = false>(
|
|
450
|
+
options: Options<GetV1TransactionsByContractAddressBySignatureData, ThrowOnError>,
|
|
451
|
+
) => {
|
|
452
|
+
return (options.client ?? _heyApiClient).get<
|
|
453
|
+
GetV1TransactionsByContractAddressBySignatureResponse,
|
|
454
|
+
GetV1TransactionsByContractAddressBySignatureError,
|
|
455
|
+
ThrowOnError
|
|
456
|
+
>({
|
|
457
|
+
security: [
|
|
458
|
+
{
|
|
459
|
+
name: "x-client-id",
|
|
460
|
+
type: "apiKey",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
scheme: "bearer",
|
|
464
|
+
type: "http",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
in: "query",
|
|
468
|
+
name: "clientId",
|
|
469
|
+
type: "apiKey",
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
url: "/v1/transactions/{contractAddress}/{signature}",
|
|
473
|
+
...options,
|
|
474
|
+
});
|
|
317
475
|
};
|
|
318
476
|
|
|
319
477
|
/**
|
|
320
478
|
* Get token transfers by transaction
|
|
321
479
|
* Get token transfers by transaction
|
|
322
480
|
*/
|
|
323
|
-
export const getV1TokensTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
481
|
+
export const getV1TokensTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
|
|
482
|
+
options: Options<GetV1TokensTransfersTransactionByTransactionHashData, ThrowOnError>,
|
|
483
|
+
) => {
|
|
484
|
+
return (options.client ?? _heyApiClient).get<
|
|
485
|
+
GetV1TokensTransfersTransactionByTransactionHashResponse,
|
|
486
|
+
GetV1TokensTransfersTransactionByTransactionHashError,
|
|
487
|
+
ThrowOnError
|
|
488
|
+
>({
|
|
489
|
+
security: [
|
|
490
|
+
{
|
|
491
|
+
name: "x-client-id",
|
|
492
|
+
type: "apiKey",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
scheme: "bearer",
|
|
496
|
+
type: "http",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
in: "query",
|
|
500
|
+
name: "clientId",
|
|
501
|
+
type: "apiKey",
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
url: "/v1/tokens/transfers/transaction/{transaction_hash}",
|
|
505
|
+
...options,
|
|
506
|
+
});
|
|
343
507
|
};
|
|
344
508
|
|
|
345
509
|
/**
|
|
346
510
|
* Get token transfers by contract
|
|
347
511
|
* Get token transfers by contract
|
|
348
512
|
*/
|
|
349
|
-
export const getV1TokensTransfersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
513
|
+
export const getV1TokensTransfersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
514
|
+
options: Options<GetV1TokensTransfersByContractAddressData, ThrowOnError>,
|
|
515
|
+
) => {
|
|
516
|
+
return (options.client ?? _heyApiClient).get<
|
|
517
|
+
GetV1TokensTransfersByContractAddressResponse,
|
|
518
|
+
GetV1TokensTransfersByContractAddressError,
|
|
519
|
+
ThrowOnError
|
|
520
|
+
>({
|
|
521
|
+
security: [
|
|
522
|
+
{
|
|
523
|
+
name: "x-client-id",
|
|
524
|
+
type: "apiKey",
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
scheme: "bearer",
|
|
528
|
+
type: "http",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
in: "query",
|
|
532
|
+
name: "clientId",
|
|
533
|
+
type: "apiKey",
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
url: "/v1/tokens/transfers/{contract_address}",
|
|
537
|
+
...options,
|
|
538
|
+
});
|
|
369
539
|
};
|
|
370
540
|
|
|
371
541
|
/**
|
|
372
542
|
* Get token transfers
|
|
373
543
|
* Get token transfers
|
|
374
544
|
*/
|
|
375
|
-
export const getV1TokensTransfers = <ThrowOnError extends boolean = false>(
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
545
|
+
export const getV1TokensTransfers = <ThrowOnError extends boolean = false>(
|
|
546
|
+
options?: Options<GetV1TokensTransfersData, ThrowOnError>,
|
|
547
|
+
) => {
|
|
548
|
+
return (options?.client ?? _heyApiClient).get<GetV1TokensTransfersResponse, GetV1TokensTransfersError, ThrowOnError>({
|
|
549
|
+
security: [
|
|
550
|
+
{
|
|
551
|
+
name: "x-client-id",
|
|
552
|
+
type: "apiKey",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
scheme: "bearer",
|
|
556
|
+
type: "http",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
in: "query",
|
|
560
|
+
name: "clientId",
|
|
561
|
+
type: "apiKey",
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
url: "/v1/tokens/transfers",
|
|
565
|
+
...options,
|
|
566
|
+
});
|
|
395
567
|
};
|
|
396
568
|
|
|
397
569
|
/**
|
|
398
570
|
* Get ERC-20 balances by address
|
|
399
571
|
* Get ERC-20 balances for a given address
|
|
400
572
|
*/
|
|
401
|
-
export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
573
|
+
export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
574
|
+
options: Options<GetV1TokensErc20ByOwnerAddressData, ThrowOnError>,
|
|
575
|
+
) => {
|
|
576
|
+
return (options.client ?? _heyApiClient).get<GetV1TokensErc20ByOwnerAddressResponse, unknown, ThrowOnError>({
|
|
577
|
+
security: [
|
|
578
|
+
{
|
|
579
|
+
name: "x-client-id",
|
|
580
|
+
type: "apiKey",
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
scheme: "bearer",
|
|
584
|
+
type: "http",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
in: "query",
|
|
588
|
+
name: "clientId",
|
|
589
|
+
type: "apiKey",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
url: "/v1/tokens/erc20/{ownerAddress}",
|
|
593
|
+
...options,
|
|
594
|
+
});
|
|
421
595
|
};
|
|
422
596
|
|
|
423
597
|
/**
|
|
@@ -425,26 +599,28 @@ export const getV1TokensErc20ByOwnerAddress = <ThrowOnError extends boolean = fa
|
|
|
425
599
|
* Get ERC-721 balances by address
|
|
426
600
|
* Get ERC-721 (NFT) balances for a given address [BEING DEPRECATED IN FAVOR OF /nfts/balance]
|
|
427
601
|
*/
|
|
428
|
-
export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
602
|
+
export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
603
|
+
options: Options<GetV1TokensErc721ByOwnerAddressData, ThrowOnError>,
|
|
604
|
+
) => {
|
|
605
|
+
return (options.client ?? _heyApiClient).get<GetV1TokensErc721ByOwnerAddressResponse, unknown, ThrowOnError>({
|
|
606
|
+
security: [
|
|
607
|
+
{
|
|
608
|
+
name: "x-client-id",
|
|
609
|
+
type: "apiKey",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
scheme: "bearer",
|
|
613
|
+
type: "http",
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
in: "query",
|
|
617
|
+
name: "clientId",
|
|
618
|
+
type: "apiKey",
|
|
619
|
+
},
|
|
620
|
+
],
|
|
621
|
+
url: "/v1/tokens/erc721/{ownerAddress}",
|
|
622
|
+
...options,
|
|
623
|
+
});
|
|
448
624
|
};
|
|
449
625
|
|
|
450
626
|
/**
|
|
@@ -452,130 +628,140 @@ export const getV1TokensErc721ByOwnerAddress = <ThrowOnError extends boolean = f
|
|
|
452
628
|
* Get ERC-1155 balances by address
|
|
453
629
|
* Get ERC-1155 (Multi Token) balances for a given address [BEING DEPRECATED IN FAVOR OF /nfts/balance]
|
|
454
630
|
*/
|
|
455
|
-
export const getV1TokensErc1155ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
631
|
+
export const getV1TokensErc1155ByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
632
|
+
options: Options<GetV1TokensErc1155ByOwnerAddressData, ThrowOnError>,
|
|
633
|
+
) => {
|
|
634
|
+
return (options.client ?? _heyApiClient).get<GetV1TokensErc1155ByOwnerAddressResponse, unknown, ThrowOnError>({
|
|
635
|
+
security: [
|
|
636
|
+
{
|
|
637
|
+
name: "x-client-id",
|
|
638
|
+
type: "apiKey",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
scheme: "bearer",
|
|
642
|
+
type: "http",
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
in: "query",
|
|
646
|
+
name: "clientId",
|
|
647
|
+
type: "apiKey",
|
|
648
|
+
},
|
|
649
|
+
],
|
|
650
|
+
url: "/v1/tokens/erc1155/{ownerAddress}",
|
|
651
|
+
...options,
|
|
652
|
+
});
|
|
475
653
|
};
|
|
476
654
|
|
|
477
655
|
/**
|
|
478
656
|
* Get supported tokens for price data
|
|
479
657
|
* Get supported tokens for price data
|
|
480
658
|
*/
|
|
481
|
-
export const getV1TokensPriceSupported = <ThrowOnError extends boolean = false>(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
659
|
+
export const getV1TokensPriceSupported = <ThrowOnError extends boolean = false>(
|
|
660
|
+
options?: Options<GetV1TokensPriceSupportedData, ThrowOnError>,
|
|
661
|
+
) => {
|
|
662
|
+
return (options?.client ?? _heyApiClient).get<GetV1TokensPriceSupportedResponse, unknown, ThrowOnError>({
|
|
663
|
+
security: [
|
|
664
|
+
{
|
|
665
|
+
name: "x-client-id",
|
|
666
|
+
type: "apiKey",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
scheme: "bearer",
|
|
670
|
+
type: "http",
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
in: "query",
|
|
674
|
+
name: "clientId",
|
|
675
|
+
type: "apiKey",
|
|
676
|
+
},
|
|
677
|
+
],
|
|
678
|
+
url: "/v1/tokens/price/supported",
|
|
679
|
+
...options,
|
|
680
|
+
});
|
|
501
681
|
};
|
|
502
682
|
|
|
503
683
|
/**
|
|
504
684
|
* Get token price
|
|
505
685
|
* Get price in USD for given token(s)
|
|
506
686
|
*/
|
|
507
|
-
export const getV1TokensPrice = <ThrowOnError extends boolean = false>(
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
687
|
+
export const getV1TokensPrice = <ThrowOnError extends boolean = false>(
|
|
688
|
+
options?: Options<GetV1TokensPriceData, ThrowOnError>,
|
|
689
|
+
) => {
|
|
690
|
+
return (options?.client ?? _heyApiClient).get<GetV1TokensPriceResponse, unknown, ThrowOnError>({
|
|
691
|
+
security: [
|
|
692
|
+
{
|
|
693
|
+
name: "x-client-id",
|
|
694
|
+
type: "apiKey",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
scheme: "bearer",
|
|
698
|
+
type: "http",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
in: "query",
|
|
702
|
+
name: "clientId",
|
|
703
|
+
type: "apiKey",
|
|
704
|
+
},
|
|
705
|
+
],
|
|
706
|
+
url: "/v1/tokens/price",
|
|
707
|
+
...options,
|
|
708
|
+
});
|
|
527
709
|
};
|
|
528
710
|
|
|
529
711
|
/**
|
|
530
712
|
* Token lookup
|
|
531
713
|
* Look up a fungible token by symbol
|
|
532
714
|
*/
|
|
533
|
-
export const getV1TokensLookup = <ThrowOnError extends boolean = false>(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
715
|
+
export const getV1TokensLookup = <ThrowOnError extends boolean = false>(
|
|
716
|
+
options: Options<GetV1TokensLookupData, ThrowOnError>,
|
|
717
|
+
) => {
|
|
718
|
+
return (options.client ?? _heyApiClient).get<GetV1TokensLookupResponse, unknown, ThrowOnError>({
|
|
719
|
+
security: [
|
|
720
|
+
{
|
|
721
|
+
name: "x-client-id",
|
|
722
|
+
type: "apiKey",
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
scheme: "bearer",
|
|
726
|
+
type: "http",
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
in: "query",
|
|
730
|
+
name: "clientId",
|
|
731
|
+
type: "apiKey",
|
|
732
|
+
},
|
|
733
|
+
],
|
|
734
|
+
url: "/v1/tokens/lookup",
|
|
735
|
+
...options,
|
|
736
|
+
});
|
|
553
737
|
};
|
|
554
738
|
|
|
555
739
|
/**
|
|
556
740
|
* Resolve
|
|
557
741
|
* Resolve
|
|
558
742
|
*/
|
|
559
|
-
export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
743
|
+
export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(
|
|
744
|
+
options: Options<GetV1ResolveByInputData, ThrowOnError>,
|
|
745
|
+
) => {
|
|
746
|
+
return (options.client ?? _heyApiClient).get<GetV1ResolveByInputResponse, GetV1ResolveByInputError, ThrowOnError>({
|
|
747
|
+
security: [
|
|
748
|
+
{
|
|
749
|
+
name: "x-client-id",
|
|
750
|
+
type: "apiKey",
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
scheme: "bearer",
|
|
754
|
+
type: "http",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
in: "query",
|
|
758
|
+
name: "clientId",
|
|
759
|
+
type: "apiKey",
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
url: "/v1/resolve/{input}",
|
|
763
|
+
...options,
|
|
764
|
+
});
|
|
579
765
|
};
|
|
580
766
|
|
|
581
767
|
/**
|
|
@@ -583,159 +769,185 @@ export const getV1ResolveByInput = <ThrowOnError extends boolean = false>(option
|
|
|
583
769
|
* Get blocks
|
|
584
770
|
*/
|
|
585
771
|
export const getV1Blocks = <ThrowOnError extends boolean = false>(options?: Options<GetV1BlocksData, ThrowOnError>) => {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
772
|
+
return (options?.client ?? _heyApiClient).get<GetV1BlocksResponse, GetV1BlocksError, ThrowOnError>({
|
|
773
|
+
security: [
|
|
774
|
+
{
|
|
775
|
+
name: "x-client-id",
|
|
776
|
+
type: "apiKey",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
scheme: "bearer",
|
|
780
|
+
type: "http",
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
in: "query",
|
|
784
|
+
name: "clientId",
|
|
785
|
+
type: "apiKey",
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
url: "/v1/blocks",
|
|
789
|
+
...options,
|
|
790
|
+
});
|
|
605
791
|
};
|
|
606
792
|
|
|
607
793
|
/**
|
|
608
794
|
* Get contract ABI
|
|
609
795
|
* Get contract ABI
|
|
610
796
|
*/
|
|
611
|
-
export const getV1ContractsAbiByContractAddress = <ThrowOnError extends boolean = false>(
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
797
|
+
export const getV1ContractsAbiByContractAddress = <ThrowOnError extends boolean = false>(
|
|
798
|
+
options: Options<GetV1ContractsAbiByContractAddressData, ThrowOnError>,
|
|
799
|
+
) => {
|
|
800
|
+
return (options.client ?? _heyApiClient).get<
|
|
801
|
+
GetV1ContractsAbiByContractAddressResponse,
|
|
802
|
+
GetV1ContractsAbiByContractAddressError,
|
|
803
|
+
ThrowOnError
|
|
804
|
+
>({
|
|
805
|
+
security: [
|
|
806
|
+
{
|
|
807
|
+
name: "x-client-id",
|
|
808
|
+
type: "apiKey",
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
scheme: "bearer",
|
|
812
|
+
type: "http",
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
in: "query",
|
|
816
|
+
name: "clientId",
|
|
817
|
+
type: "apiKey",
|
|
818
|
+
},
|
|
819
|
+
],
|
|
820
|
+
url: "/v1/contracts/abi/{contractAddress}",
|
|
821
|
+
...options,
|
|
822
|
+
});
|
|
631
823
|
};
|
|
632
824
|
|
|
633
825
|
/**
|
|
634
826
|
* Get contract metadata
|
|
635
827
|
* Get contract metadata
|
|
636
828
|
*/
|
|
637
|
-
export const getV1ContractsMetadataByContractAddress = <ThrowOnError extends boolean = false>(
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
829
|
+
export const getV1ContractsMetadataByContractAddress = <ThrowOnError extends boolean = false>(
|
|
830
|
+
options: Options<GetV1ContractsMetadataByContractAddressData, ThrowOnError>,
|
|
831
|
+
) => {
|
|
832
|
+
return (options.client ?? _heyApiClient).get<
|
|
833
|
+
GetV1ContractsMetadataByContractAddressResponse,
|
|
834
|
+
GetV1ContractsMetadataByContractAddressError,
|
|
835
|
+
ThrowOnError
|
|
836
|
+
>({
|
|
837
|
+
security: [
|
|
838
|
+
{
|
|
839
|
+
name: "x-client-id",
|
|
840
|
+
type: "apiKey",
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
scheme: "bearer",
|
|
844
|
+
type: "http",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
in: "query",
|
|
848
|
+
name: "clientId",
|
|
849
|
+
type: "apiKey",
|
|
850
|
+
},
|
|
851
|
+
],
|
|
852
|
+
url: "/v1/contracts/metadata/{contractAddress}",
|
|
853
|
+
...options,
|
|
854
|
+
});
|
|
657
855
|
};
|
|
658
856
|
|
|
659
857
|
/**
|
|
660
858
|
* Decode logs and transactions
|
|
661
859
|
* Decode logs and transactions
|
|
662
860
|
*/
|
|
663
|
-
export const postV1DecodeByContractAddress = <ThrowOnError extends boolean = false>(
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
861
|
+
export const postV1DecodeByContractAddress = <ThrowOnError extends boolean = false>(
|
|
862
|
+
options: Options<PostV1DecodeByContractAddressData, ThrowOnError>,
|
|
863
|
+
) => {
|
|
864
|
+
return (options.client ?? _heyApiClient).post<
|
|
865
|
+
PostV1DecodeByContractAddressResponse,
|
|
866
|
+
PostV1DecodeByContractAddressError,
|
|
867
|
+
ThrowOnError
|
|
868
|
+
>({
|
|
869
|
+
security: [
|
|
870
|
+
{
|
|
871
|
+
name: "x-client-id",
|
|
872
|
+
type: "apiKey",
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
scheme: "bearer",
|
|
876
|
+
type: "http",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
in: "query",
|
|
880
|
+
name: "clientId",
|
|
881
|
+
type: "apiKey",
|
|
882
|
+
},
|
|
883
|
+
],
|
|
884
|
+
url: "/v1/decode/{contractAddress}",
|
|
885
|
+
...options,
|
|
886
|
+
headers: {
|
|
887
|
+
"Content-Type": "application/json",
|
|
888
|
+
...options?.headers,
|
|
889
|
+
},
|
|
890
|
+
});
|
|
687
891
|
};
|
|
688
892
|
|
|
689
893
|
/**
|
|
690
894
|
* Get NFT balances by address
|
|
691
895
|
* Get NFT balances for a given address
|
|
692
896
|
*/
|
|
693
|
-
export const getV1NftsBalanceByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
897
|
+
export const getV1NftsBalanceByOwnerAddress = <ThrowOnError extends boolean = false>(
|
|
898
|
+
options: Options<GetV1NftsBalanceByOwnerAddressData, ThrowOnError>,
|
|
899
|
+
) => {
|
|
900
|
+
return (options.client ?? _heyApiClient).get<GetV1NftsBalanceByOwnerAddressResponse, unknown, ThrowOnError>({
|
|
901
|
+
security: [
|
|
902
|
+
{
|
|
903
|
+
name: "x-client-id",
|
|
904
|
+
type: "apiKey",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
scheme: "bearer",
|
|
908
|
+
type: "http",
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
in: "query",
|
|
912
|
+
name: "clientId",
|
|
913
|
+
type: "apiKey",
|
|
914
|
+
},
|
|
915
|
+
],
|
|
916
|
+
url: "/v1/nfts/balance/{ownerAddress}",
|
|
917
|
+
...options,
|
|
918
|
+
});
|
|
713
919
|
};
|
|
714
920
|
|
|
715
921
|
/**
|
|
716
922
|
* Get collection
|
|
717
923
|
* Retrieve metadata about a collection
|
|
718
924
|
*/
|
|
719
|
-
export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
925
|
+
export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
926
|
+
options: Options<GetV1NftsCollectionsByContractAddressData, ThrowOnError>,
|
|
927
|
+
) => {
|
|
928
|
+
return (options.client ?? _heyApiClient).get<
|
|
929
|
+
GetV1NftsCollectionsByContractAddressResponse,
|
|
930
|
+
GetV1NftsCollectionsByContractAddressError,
|
|
931
|
+
ThrowOnError
|
|
932
|
+
>({
|
|
933
|
+
security: [
|
|
934
|
+
{
|
|
935
|
+
name: "x-client-id",
|
|
936
|
+
type: "apiKey",
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
scheme: "bearer",
|
|
940
|
+
type: "http",
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
in: "query",
|
|
944
|
+
name: "clientId",
|
|
945
|
+
type: "apiKey",
|
|
946
|
+
},
|
|
947
|
+
],
|
|
948
|
+
url: "/v1/nfts/collections/{contract_address}",
|
|
949
|
+
...options,
|
|
950
|
+
});
|
|
739
951
|
};
|
|
740
952
|
|
|
741
953
|
/**
|
|
@@ -743,309 +955,371 @@ export const getV1NftsCollectionsByContractAddress = <ThrowOnError extends boole
|
|
|
743
955
|
* Get NFTs by owner
|
|
744
956
|
*/
|
|
745
957
|
export const getV1Nfts = <ThrowOnError extends boolean = false>(options: Options<GetV1NftsData, ThrowOnError>) => {
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
958
|
+
return (options.client ?? _heyApiClient).get<GetV1NftsResponse, GetV1NftsError, ThrowOnError>({
|
|
959
|
+
security: [
|
|
960
|
+
{
|
|
961
|
+
name: "x-client-id",
|
|
962
|
+
type: "apiKey",
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
scheme: "bearer",
|
|
966
|
+
type: "http",
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
in: "query",
|
|
970
|
+
name: "clientId",
|
|
971
|
+
type: "apiKey",
|
|
972
|
+
},
|
|
973
|
+
],
|
|
974
|
+
url: "/v1/nfts",
|
|
975
|
+
...options,
|
|
976
|
+
});
|
|
765
977
|
};
|
|
766
978
|
|
|
767
979
|
/**
|
|
768
980
|
* Get NFT owners by contract
|
|
769
981
|
* Get NFT owners by contract
|
|
770
982
|
*/
|
|
771
|
-
export const getV1NftsOwnersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
983
|
+
export const getV1NftsOwnersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
984
|
+
options: Options<GetV1NftsOwnersByContractAddressData, ThrowOnError>,
|
|
985
|
+
) => {
|
|
986
|
+
return (options.client ?? _heyApiClient).get<
|
|
987
|
+
GetV1NftsOwnersByContractAddressResponse,
|
|
988
|
+
GetV1NftsOwnersByContractAddressError,
|
|
989
|
+
ThrowOnError
|
|
990
|
+
>({
|
|
991
|
+
security: [
|
|
992
|
+
{
|
|
993
|
+
name: "x-client-id",
|
|
994
|
+
type: "apiKey",
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
scheme: "bearer",
|
|
998
|
+
type: "http",
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
in: "query",
|
|
1002
|
+
name: "clientId",
|
|
1003
|
+
type: "apiKey",
|
|
1004
|
+
},
|
|
1005
|
+
],
|
|
1006
|
+
url: "/v1/nfts/owners/{contract_address}",
|
|
1007
|
+
...options,
|
|
1008
|
+
});
|
|
791
1009
|
};
|
|
792
1010
|
|
|
793
1011
|
/**
|
|
794
1012
|
* Get NFT owners by token
|
|
795
1013
|
* Get NFT owners by token
|
|
796
1014
|
*/
|
|
797
|
-
export const getV1NftsOwnersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1015
|
+
export const getV1NftsOwnersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
1016
|
+
options: Options<GetV1NftsOwnersByContractAddressByTokenIdData, ThrowOnError>,
|
|
1017
|
+
) => {
|
|
1018
|
+
return (options.client ?? _heyApiClient).get<
|
|
1019
|
+
GetV1NftsOwnersByContractAddressByTokenIdResponse,
|
|
1020
|
+
GetV1NftsOwnersByContractAddressByTokenIdError,
|
|
1021
|
+
ThrowOnError
|
|
1022
|
+
>({
|
|
1023
|
+
security: [
|
|
1024
|
+
{
|
|
1025
|
+
name: "x-client-id",
|
|
1026
|
+
type: "apiKey",
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
scheme: "bearer",
|
|
1030
|
+
type: "http",
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
in: "query",
|
|
1034
|
+
name: "clientId",
|
|
1035
|
+
type: "apiKey",
|
|
1036
|
+
},
|
|
1037
|
+
],
|
|
1038
|
+
url: "/v1/nfts/owners/{contract_address}/{token_id}",
|
|
1039
|
+
...options,
|
|
1040
|
+
});
|
|
817
1041
|
};
|
|
818
1042
|
|
|
819
1043
|
/**
|
|
820
1044
|
* Get NFT transfers
|
|
821
1045
|
* Get NFT transfers
|
|
822
1046
|
*/
|
|
823
|
-
export const getV1NftsTransfers = <ThrowOnError extends boolean = false>(
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
1047
|
+
export const getV1NftsTransfers = <ThrowOnError extends boolean = false>(
|
|
1048
|
+
options?: Options<GetV1NftsTransfersData, ThrowOnError>,
|
|
1049
|
+
) => {
|
|
1050
|
+
return (options?.client ?? _heyApiClient).get<GetV1NftsTransfersResponse, GetV1NftsTransfersError, ThrowOnError>({
|
|
1051
|
+
security: [
|
|
1052
|
+
{
|
|
1053
|
+
name: "x-client-id",
|
|
1054
|
+
type: "apiKey",
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
scheme: "bearer",
|
|
1058
|
+
type: "http",
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
in: "query",
|
|
1062
|
+
name: "clientId",
|
|
1063
|
+
type: "apiKey",
|
|
1064
|
+
},
|
|
1065
|
+
],
|
|
1066
|
+
url: "/v1/nfts/transfers",
|
|
1067
|
+
...options,
|
|
1068
|
+
});
|
|
843
1069
|
};
|
|
844
1070
|
|
|
845
1071
|
/**
|
|
846
1072
|
* Get NFT transfers by transaction
|
|
847
1073
|
* Get NFT transfers by transaction
|
|
848
1074
|
*/
|
|
849
|
-
export const getV1NftsTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
1075
|
+
export const getV1NftsTransfersTransactionByTransactionHash = <ThrowOnError extends boolean = false>(
|
|
1076
|
+
options: Options<GetV1NftsTransfersTransactionByTransactionHashData, ThrowOnError>,
|
|
1077
|
+
) => {
|
|
1078
|
+
return (options.client ?? _heyApiClient).get<
|
|
1079
|
+
GetV1NftsTransfersTransactionByTransactionHashResponse,
|
|
1080
|
+
GetV1NftsTransfersTransactionByTransactionHashError,
|
|
1081
|
+
ThrowOnError
|
|
1082
|
+
>({
|
|
1083
|
+
security: [
|
|
1084
|
+
{
|
|
1085
|
+
name: "x-client-id",
|
|
1086
|
+
type: "apiKey",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
scheme: "bearer",
|
|
1090
|
+
type: "http",
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
in: "query",
|
|
1094
|
+
name: "clientId",
|
|
1095
|
+
type: "apiKey",
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
url: "/v1/nfts/transfers/transaction/{transaction_hash}",
|
|
1099
|
+
...options,
|
|
1100
|
+
});
|
|
869
1101
|
};
|
|
870
1102
|
|
|
871
1103
|
/**
|
|
872
1104
|
* Get NFT transfers by contract
|
|
873
1105
|
* Get NFT transfers by contract
|
|
874
1106
|
*/
|
|
875
|
-
export const getV1NftsTransfersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1107
|
+
export const getV1NftsTransfersByContractAddress = <ThrowOnError extends boolean = false>(
|
|
1108
|
+
options: Options<GetV1NftsTransfersByContractAddressData, ThrowOnError>,
|
|
1109
|
+
) => {
|
|
1110
|
+
return (options.client ?? _heyApiClient).get<
|
|
1111
|
+
GetV1NftsTransfersByContractAddressResponse,
|
|
1112
|
+
GetV1NftsTransfersByContractAddressError,
|
|
1113
|
+
ThrowOnError
|
|
1114
|
+
>({
|
|
1115
|
+
security: [
|
|
1116
|
+
{
|
|
1117
|
+
name: "x-client-id",
|
|
1118
|
+
type: "apiKey",
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
scheme: "bearer",
|
|
1122
|
+
type: "http",
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
in: "query",
|
|
1126
|
+
name: "clientId",
|
|
1127
|
+
type: "apiKey",
|
|
1128
|
+
},
|
|
1129
|
+
],
|
|
1130
|
+
url: "/v1/nfts/transfers/{contract_address}",
|
|
1131
|
+
...options,
|
|
1132
|
+
});
|
|
895
1133
|
};
|
|
896
1134
|
|
|
897
1135
|
/**
|
|
898
1136
|
* Get NFTs by contract
|
|
899
1137
|
* Get NFTs by contract
|
|
900
1138
|
*/
|
|
901
|
-
export const getV1NftsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1139
|
+
export const getV1NftsByContractAddress = <ThrowOnError extends boolean = false>(
|
|
1140
|
+
options: Options<GetV1NftsByContractAddressData, ThrowOnError>,
|
|
1141
|
+
) => {
|
|
1142
|
+
return (options.client ?? _heyApiClient).get<
|
|
1143
|
+
GetV1NftsByContractAddressResponse,
|
|
1144
|
+
GetV1NftsByContractAddressError,
|
|
1145
|
+
ThrowOnError
|
|
1146
|
+
>({
|
|
1147
|
+
security: [
|
|
1148
|
+
{
|
|
1149
|
+
name: "x-client-id",
|
|
1150
|
+
type: "apiKey",
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
scheme: "bearer",
|
|
1154
|
+
type: "http",
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
in: "query",
|
|
1158
|
+
name: "clientId",
|
|
1159
|
+
type: "apiKey",
|
|
1160
|
+
},
|
|
1161
|
+
],
|
|
1162
|
+
url: "/v1/nfts/{contract_address}",
|
|
1163
|
+
...options,
|
|
1164
|
+
});
|
|
921
1165
|
};
|
|
922
1166
|
|
|
923
1167
|
/**
|
|
924
1168
|
* Get NFT transfers by token
|
|
925
1169
|
* Get NFT transfers by token
|
|
926
1170
|
*/
|
|
927
|
-
export const getV1NftsTransfersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1171
|
+
export const getV1NftsTransfersByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
1172
|
+
options: Options<GetV1NftsTransfersByContractAddressByTokenIdData, ThrowOnError>,
|
|
1173
|
+
) => {
|
|
1174
|
+
return (options.client ?? _heyApiClient).get<
|
|
1175
|
+
GetV1NftsTransfersByContractAddressByTokenIdResponse,
|
|
1176
|
+
GetV1NftsTransfersByContractAddressByTokenIdError,
|
|
1177
|
+
ThrowOnError
|
|
1178
|
+
>({
|
|
1179
|
+
security: [
|
|
1180
|
+
{
|
|
1181
|
+
name: "x-client-id",
|
|
1182
|
+
type: "apiKey",
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
scheme: "bearer",
|
|
1186
|
+
type: "http",
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
in: "query",
|
|
1190
|
+
name: "clientId",
|
|
1191
|
+
type: "apiKey",
|
|
1192
|
+
},
|
|
1193
|
+
],
|
|
1194
|
+
url: "/v1/nfts/transfers/{contract_address}/{token_id}",
|
|
1195
|
+
...options,
|
|
1196
|
+
});
|
|
947
1197
|
};
|
|
948
1198
|
|
|
949
1199
|
/**
|
|
950
1200
|
* Get NFT by token ID
|
|
951
1201
|
* Get NFT by token ID
|
|
952
1202
|
*/
|
|
953
|
-
export const getV1NftsByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1203
|
+
export const getV1NftsByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
1204
|
+
options: Options<GetV1NftsByContractAddressByTokenIdData, ThrowOnError>,
|
|
1205
|
+
) => {
|
|
1206
|
+
return (options.client ?? _heyApiClient).get<
|
|
1207
|
+
GetV1NftsByContractAddressByTokenIdResponse,
|
|
1208
|
+
GetV1NftsByContractAddressByTokenIdError,
|
|
1209
|
+
ThrowOnError
|
|
1210
|
+
>({
|
|
1211
|
+
security: [
|
|
1212
|
+
{
|
|
1213
|
+
name: "x-client-id",
|
|
1214
|
+
type: "apiKey",
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
scheme: "bearer",
|
|
1218
|
+
type: "http",
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
in: "query",
|
|
1222
|
+
name: "clientId",
|
|
1223
|
+
type: "apiKey",
|
|
1224
|
+
},
|
|
1225
|
+
],
|
|
1226
|
+
url: "/v1/nfts/{contract_address}/{token_id}",
|
|
1227
|
+
...options,
|
|
1228
|
+
});
|
|
973
1229
|
};
|
|
974
1230
|
|
|
975
1231
|
/**
|
|
976
1232
|
* Force refresh collection metadata
|
|
977
1233
|
* Force refresh collection metadata for the specified contract (across multiple chains if provided)
|
|
978
1234
|
*/
|
|
979
|
-
export const getV1NftsMetadataRefreshByContractAddress = <ThrowOnError extends boolean = false>(
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1235
|
+
export const getV1NftsMetadataRefreshByContractAddress = <ThrowOnError extends boolean = false>(
|
|
1236
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressData, ThrowOnError>,
|
|
1237
|
+
) => {
|
|
1238
|
+
return (options.client ?? _heyApiClient).get<
|
|
1239
|
+
GetV1NftsMetadataRefreshByContractAddressResponse,
|
|
1240
|
+
GetV1NftsMetadataRefreshByContractAddressError,
|
|
1241
|
+
ThrowOnError
|
|
1242
|
+
>({
|
|
1243
|
+
security: [
|
|
1244
|
+
{
|
|
1245
|
+
name: "x-client-id",
|
|
1246
|
+
type: "apiKey",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
scheme: "bearer",
|
|
1250
|
+
type: "http",
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
in: "query",
|
|
1254
|
+
name: "clientId",
|
|
1255
|
+
type: "apiKey",
|
|
1256
|
+
},
|
|
1257
|
+
],
|
|
1258
|
+
url: "/v1/nfts/metadata/refresh/{contract_address}",
|
|
1259
|
+
...options,
|
|
1260
|
+
});
|
|
999
1261
|
};
|
|
1000
1262
|
|
|
1001
1263
|
/**
|
|
1002
1264
|
* Force refresh token metadata
|
|
1003
1265
|
* Force refresh token metadata for the specified contract and token ID (across multiple chains if provided)
|
|
1004
1266
|
*/
|
|
1005
|
-
export const getV1NftsMetadataRefreshByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1267
|
+
export const getV1NftsMetadataRefreshByContractAddressByTokenId = <ThrowOnError extends boolean = false>(
|
|
1268
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressByTokenIdData, ThrowOnError>,
|
|
1269
|
+
) => {
|
|
1270
|
+
return (options.client ?? _heyApiClient).get<
|
|
1271
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdResponse,
|
|
1272
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdError,
|
|
1273
|
+
ThrowOnError
|
|
1274
|
+
>({
|
|
1275
|
+
security: [
|
|
1276
|
+
{
|
|
1277
|
+
name: "x-client-id",
|
|
1278
|
+
type: "apiKey",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
scheme: "bearer",
|
|
1282
|
+
type: "http",
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
in: "query",
|
|
1286
|
+
name: "clientId",
|
|
1287
|
+
type: "apiKey",
|
|
1288
|
+
},
|
|
1289
|
+
],
|
|
1290
|
+
url: "/v1/nfts/metadata/refresh/{contract_address}/{token_id}",
|
|
1291
|
+
...options,
|
|
1292
|
+
});
|
|
1025
1293
|
};
|
|
1026
1294
|
|
|
1027
1295
|
/**
|
|
1028
1296
|
* Get wallet transactions
|
|
1029
1297
|
* Get incoming and outgoing transactions for a wallet
|
|
1030
1298
|
*/
|
|
1031
|
-
export const getV1WalletsByWalletAddressTransactions = <ThrowOnError extends boolean = false>(
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1299
|
+
export const getV1WalletsByWalletAddressTransactions = <ThrowOnError extends boolean = false>(
|
|
1300
|
+
options: Options<GetV1WalletsByWalletAddressTransactionsData, ThrowOnError>,
|
|
1301
|
+
) => {
|
|
1302
|
+
return (options.client ?? _heyApiClient).get<
|
|
1303
|
+
GetV1WalletsByWalletAddressTransactionsResponse,
|
|
1304
|
+
GetV1WalletsByWalletAddressTransactionsError,
|
|
1305
|
+
ThrowOnError
|
|
1306
|
+
>({
|
|
1307
|
+
security: [
|
|
1308
|
+
{
|
|
1309
|
+
name: "x-client-id",
|
|
1310
|
+
type: "apiKey",
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
scheme: "bearer",
|
|
1314
|
+
type: "http",
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
in: "query",
|
|
1318
|
+
name: "clientId",
|
|
1319
|
+
type: "apiKey",
|
|
1320
|
+
},
|
|
1321
|
+
],
|
|
1322
|
+
url: "/v1/wallets/{wallet_address}/transactions",
|
|
1323
|
+
...options,
|
|
1324
|
+
});
|
|
1325
|
+
};
|