@covalenthq/client-sdk 0.1.2 → 0.1.3
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 +44 -31
- package/dist/services/BalanceService.d.ts +390 -0
- package/dist/services/BalanceService.js +618 -0
- package/dist/services/BalanceService.js.map +1 -0
- package/dist/services/BaseService.d.ts +303 -0
- package/dist/services/BaseService.js +691 -0
- package/dist/services/BaseService.js.map +1 -0
- package/dist/services/Client.d.ts +22 -0
- package/dist/services/Client.js +26 -0
- package/dist/services/Client.js.map +1 -0
- package/dist/services/NftService.d.ts +428 -0
- package/dist/services/NftService.js +981 -0
- package/dist/services/NftService.js.map +1 -0
- package/dist/services/PricingService.d.ts +75 -0
- package/dist/services/PricingService.js +126 -0
- package/dist/services/PricingService.js.map +1 -0
- package/dist/services/SecurityService.d.ts +96 -0
- package/dist/services/SecurityService.js +122 -0
- package/dist/services/SecurityService.js.map +1 -0
- package/dist/services/TransactionService.d.ts +222 -0
- package/dist/services/TransactionService.js +433 -0
- package/dist/services/TransactionService.js.map +1 -0
- package/dist/services/XykService.d.ts +529 -0
- package/dist/services/XykService.js +1000 -0
- package/dist/services/XykService.js.map +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/util/ApiHelpers.d.ts +1 -0
- package/dist/util/ApiHelpers.js +15 -0
- package/dist/util/ApiHelpers.js.map +1 -0
- package/dist/util/backoff.d.ts +9 -0
- package/dist/util/backoff.js +25 -0
- package/dist/util/backoff.js.map +1 -0
- package/package.json +9 -1
- package/dist/ApprovalService.d.ts +0 -59
- package/dist/ApprovalService.js +0 -52
- package/dist/ApprovalService.js.map +0 -1
- package/dist/BalancesService.d.ts +0 -189
- package/dist/BalancesService.js +0 -231
- package/dist/BalancesService.js.map +0 -1
- package/dist/BaseService.d.ts +0 -169
- package/dist/BaseService.js +0 -276
- package/dist/BaseService.js.map +0 -1
- package/dist/Client.d.ts +0 -24
- package/dist/Client.js +0 -30
- package/dist/Client.js.map +0 -1
- package/dist/LogEventService.d.ts +0 -62
- package/dist/LogEventService.js +0 -75
- package/dist/LogEventService.js.map +0 -1
- package/dist/NameResolverService.d.ts +0 -33
- package/dist/NameResolverService.js +0 -52
- package/dist/NameResolverService.js.map +0 -1
- package/dist/NftService.d.ts +0 -271
- package/dist/NftService.js +0 -528
- package/dist/NftService.js.map +0 -1
- package/dist/PricingService.d.ts +0 -52
- package/dist/PricingService.js +0 -65
- package/dist/PricingService.js.map +0 -1
- package/dist/TransactionsService.d.ts +0 -126
- package/dist/TransactionsService.js +0 -230
- package/dist/TransactionsService.js.map +0 -1
- package/dist/XykService.d.ts +0 -383
- package/dist/XykService.js +0 -467
- package/dist/XykService.js.map +0 -1
- package/dist/index.js.map +0 -1
- /package/dist/{index.d.ts → services/index.d.ts} +0 -0
- /package/dist/{index.js → services/index.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseService.js","sourceRoot":"","sources":["../../src/services/BaseService.ts"],"names":[],"mappings":";;;AAEA,6CAAqD;AACrD,mDAA4D;AAE5D,MAAM,aAAa;IAUf,YAAY,IAAmB;QAC3B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAe,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrH,CAAC;CACJ;AACD,MAAM,KAAK;IAMP,YAAY,IAAW;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,M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from "./BaseService";
|
|
4
|
+
import { NftService } from "./NftService";
|
|
5
|
+
import { PricingService } from "./PricingService";
|
|
6
|
+
import { TransactionService } from "./TransactionService";
|
|
7
|
+
import { XykService } from "./XykService";
|
|
8
|
+
export type Chains = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "astar-shiden" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-l2-testnet" | "scroll-l1-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "optimism-mainnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-testnet" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet";
|
|
9
|
+
export type Quotes = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
|
|
10
|
+
/**
|
|
11
|
+
* Client Class
|
|
12
|
+
*/
|
|
13
|
+
export declare class Client {
|
|
14
|
+
SecurityService: SecurityService;
|
|
15
|
+
BalanceService: BalanceService;
|
|
16
|
+
BaseService: BaseService;
|
|
17
|
+
NftService: NftService;
|
|
18
|
+
PricingService: PricingService;
|
|
19
|
+
TransactionService: TransactionService;
|
|
20
|
+
XykService: XykService;
|
|
21
|
+
constructor(apiKey: string);
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
const SecurityService_1 = require("./SecurityService");
|
|
5
|
+
const BalanceService_1 = require("./BalanceService");
|
|
6
|
+
const BaseService_1 = require("./BaseService");
|
|
7
|
+
const NftService_1 = require("./NftService");
|
|
8
|
+
const PricingService_1 = require("./PricingService");
|
|
9
|
+
const TransactionService_1 = require("./TransactionService");
|
|
10
|
+
const XykService_1 = require("./XykService");
|
|
11
|
+
/**
|
|
12
|
+
* Client Class
|
|
13
|
+
*/
|
|
14
|
+
class Client {
|
|
15
|
+
constructor(apiKey) {
|
|
16
|
+
this.SecurityService = new SecurityService_1.SecurityService(apiKey);
|
|
17
|
+
this.BalanceService = new BalanceService_1.BalanceService(apiKey);
|
|
18
|
+
this.BaseService = new BaseService_1.BaseService(apiKey);
|
|
19
|
+
this.NftService = new NftService_1.NftService(apiKey);
|
|
20
|
+
this.PricingService = new PricingService_1.PricingService(apiKey);
|
|
21
|
+
this.TransactionService = new TransactionService_1.TransactionService(apiKey);
|
|
22
|
+
this.XykService = new XykService_1.XykService(apiKey);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Client = Client;
|
|
26
|
+
//# sourceMappingURL=Client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../src/services/Client.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,qDAAkD;AAClD,+CAA4C;AAC5C,6CAA0C;AAC1C,qDAAkD;AAClD,6DAA0D;AAC1D,6CAA0C;AAI1C;;GAEG;AACH,MAAa,MAAM;IAgBf,YAAY,MAAc;QAEtB,IAAI,CAAC,eAAe,GAAG,IAAI,iCAAe,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,cAAc,GAAG,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,kBAAkB,GAAG,IAAI,uCAAkB,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;CAEJ;AA3BD,wBA2BC"}
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import { Chains } from "./Client";
|
|
2
|
+
declare class ChainCollectionResponse {
|
|
3
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
4
|
+
updated_at: string;
|
|
5
|
+
/** * The requested chain ID eg: `1`. */
|
|
6
|
+
chain_id: number;
|
|
7
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
8
|
+
chain_name: string;
|
|
9
|
+
/** * List of response items. */
|
|
10
|
+
items: ChainCollectionItem[];
|
|
11
|
+
/** * Pagination metadata. */
|
|
12
|
+
pagination: Pagination;
|
|
13
|
+
constructor(data: ChainCollectionResponse);
|
|
14
|
+
}
|
|
15
|
+
declare class ChainCollectionItem {
|
|
16
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
17
|
+
contract_address: string;
|
|
18
|
+
/** * The string returned by the `name()` method. */
|
|
19
|
+
contract_name: string;
|
|
20
|
+
/** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
21
|
+
is_spam: boolean;
|
|
22
|
+
token_total_supply: number;
|
|
23
|
+
cached_metadata_count: number;
|
|
24
|
+
cached_asset_count: number;
|
|
25
|
+
last_scraped_at: string;
|
|
26
|
+
constructor(data: ChainCollectionItem);
|
|
27
|
+
}
|
|
28
|
+
declare class Pagination {
|
|
29
|
+
/** * True is there is another page. */
|
|
30
|
+
has_more: boolean;
|
|
31
|
+
/** * The requested page number. */
|
|
32
|
+
page_number: number;
|
|
33
|
+
/** * The requested number of items on the current page. */
|
|
34
|
+
page_size: number;
|
|
35
|
+
/** * The total number of items across all pages for this request. */
|
|
36
|
+
total_count: number;
|
|
37
|
+
constructor(data: Pagination);
|
|
38
|
+
}
|
|
39
|
+
declare class NftAddressBalanceNftResponse {
|
|
40
|
+
/** * The requested address. */
|
|
41
|
+
address: string;
|
|
42
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
43
|
+
updated_at: string;
|
|
44
|
+
/** * List of response items. */
|
|
45
|
+
items: NftTokenContractBalanceItem[];
|
|
46
|
+
constructor(data: NftAddressBalanceNftResponse);
|
|
47
|
+
}
|
|
48
|
+
declare class NftTokenContractBalanceItem {
|
|
49
|
+
/** * The string returned by the `name()` method. */
|
|
50
|
+
contract_name: string;
|
|
51
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
52
|
+
contract_ticker_symbol: string;
|
|
53
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
54
|
+
contract_address: string;
|
|
55
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
56
|
+
supports_erc: string;
|
|
57
|
+
/** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
58
|
+
is_spam: boolean;
|
|
59
|
+
last_transfered_at: string;
|
|
60
|
+
/** * The asset balance. Use `contract_decimals` to scale this balance for display purposes. */
|
|
61
|
+
balance: bigint | null;
|
|
62
|
+
balance24h: number;
|
|
63
|
+
type: string;
|
|
64
|
+
nft_data: NftData[];
|
|
65
|
+
constructor(data: NftTokenContractBalanceItem);
|
|
66
|
+
}
|
|
67
|
+
declare class NftData {
|
|
68
|
+
/** * The token's id. */
|
|
69
|
+
token_id: bigint | null;
|
|
70
|
+
token_url: string;
|
|
71
|
+
/** * The original minter. */
|
|
72
|
+
original_owner: string;
|
|
73
|
+
external_data: NftExternalData;
|
|
74
|
+
/** * If `true`, the asset data is available from the Covalent CDN. */
|
|
75
|
+
asset_cached: boolean;
|
|
76
|
+
/** * If `true`, the image data is available from the Covalent CDN. */
|
|
77
|
+
image_cached: boolean;
|
|
78
|
+
constructor(data: NftData);
|
|
79
|
+
}
|
|
80
|
+
declare class NftExternalData {
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
asset_url: string;
|
|
84
|
+
asset_file_extension: string;
|
|
85
|
+
asset_mime_type: string;
|
|
86
|
+
asset_size_bytes: string;
|
|
87
|
+
image: string;
|
|
88
|
+
image_256: string;
|
|
89
|
+
image_512: string;
|
|
90
|
+
image_1024: string;
|
|
91
|
+
animation_url: string;
|
|
92
|
+
external_url: string;
|
|
93
|
+
attributes: NftCollectionAttribute[];
|
|
94
|
+
constructor(data: NftExternalData);
|
|
95
|
+
}
|
|
96
|
+
declare class NftCollectionAttribute {
|
|
97
|
+
trait_type: string;
|
|
98
|
+
value: string;
|
|
99
|
+
constructor(data: NftCollectionAttribute);
|
|
100
|
+
}
|
|
101
|
+
declare class NftMetadataResponse {
|
|
102
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
103
|
+
updated_at: string;
|
|
104
|
+
/** * List of response items. */
|
|
105
|
+
items: NftTokenContract[];
|
|
106
|
+
/** * Pagination metadata. */
|
|
107
|
+
pagination: Pagination;
|
|
108
|
+
constructor(data: NftMetadataResponse);
|
|
109
|
+
}
|
|
110
|
+
declare class NftTokenContract {
|
|
111
|
+
/** * The string returned by the `name()` method. */
|
|
112
|
+
contract_name: string;
|
|
113
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
114
|
+
contract_ticker_symbol: string;
|
|
115
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
116
|
+
contract_address: string;
|
|
117
|
+
/** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
118
|
+
is_spam: boolean;
|
|
119
|
+
type: string;
|
|
120
|
+
nft_data: NftData;
|
|
121
|
+
constructor(data: NftTokenContract);
|
|
122
|
+
}
|
|
123
|
+
declare class NftTransactionsResponse {
|
|
124
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
125
|
+
updated_at: string;
|
|
126
|
+
/** * The requested chain ID eg: `1`. */
|
|
127
|
+
chain_id: number;
|
|
128
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
129
|
+
chain_name: string;
|
|
130
|
+
/** * List of response items. */
|
|
131
|
+
items: NftTransaction[];
|
|
132
|
+
constructor(data: NftTransactionsResponse);
|
|
133
|
+
}
|
|
134
|
+
declare class NftTransaction {
|
|
135
|
+
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
136
|
+
contract_decimals: number;
|
|
137
|
+
/** * The string returned by the `name()` method. */
|
|
138
|
+
contract_name: string;
|
|
139
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
140
|
+
contract_ticker_symbol: string;
|
|
141
|
+
/** * The contract logo URL. */
|
|
142
|
+
logo_url: string;
|
|
143
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
144
|
+
contract_address: string;
|
|
145
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
146
|
+
supports_erc: string;
|
|
147
|
+
nft_transactions: NftTransactionItem[];
|
|
148
|
+
/** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
149
|
+
is_spam: boolean;
|
|
150
|
+
constructor(data: NftTransaction);
|
|
151
|
+
}
|
|
152
|
+
declare class NftTransactionItem {
|
|
153
|
+
/** * The block signed timestamp in UTC. */
|
|
154
|
+
block_signed_at: string;
|
|
155
|
+
/** * The height of the block. */
|
|
156
|
+
block_height: number;
|
|
157
|
+
/** * The requested transaction hash. */
|
|
158
|
+
tx_hash: string;
|
|
159
|
+
/** * The offset is the position of the tx in the block. */
|
|
160
|
+
tx_offset: number;
|
|
161
|
+
successful: boolean;
|
|
162
|
+
from_address: string;
|
|
163
|
+
from_address_label: string;
|
|
164
|
+
to_address: string;
|
|
165
|
+
to_address_label: string;
|
|
166
|
+
/** * The value attached to this tx. */
|
|
167
|
+
value: bigint | null;
|
|
168
|
+
/** * The value attached in `quote-currency` to this tx. */
|
|
169
|
+
value_quote: number;
|
|
170
|
+
/** * A prettier version of the quote for rendering purposes. */
|
|
171
|
+
pretty_value_quote: string;
|
|
172
|
+
gas_offered: string;
|
|
173
|
+
gas_spent: string;
|
|
174
|
+
gas_price: string;
|
|
175
|
+
/** * The total transaction fees (gas_price * gas_spent) paid for this tx, denoted in wei. */
|
|
176
|
+
fees_paid: bigint | null;
|
|
177
|
+
/** * The gas spent in `quote-currency` denomination. */
|
|
178
|
+
gas_quote: number;
|
|
179
|
+
/** * A prettier version of the quote for rendering purposes. */
|
|
180
|
+
pretty_gas_quote: string;
|
|
181
|
+
gas_quote_rate: number;
|
|
182
|
+
log_events: LogEvent[];
|
|
183
|
+
constructor(data: NftTransactionItem);
|
|
184
|
+
}
|
|
185
|
+
declare class LogEvent {
|
|
186
|
+
/** * The block signed timestamp in UTC. */
|
|
187
|
+
block_signed_at: string;
|
|
188
|
+
/** * The height of the block. */
|
|
189
|
+
block_height: number;
|
|
190
|
+
/** * The offset is the position of the tx in the block. */
|
|
191
|
+
tx_offset: number;
|
|
192
|
+
log_offset: number;
|
|
193
|
+
/** * The requested transaction hash. */
|
|
194
|
+
tx_hash: string;
|
|
195
|
+
raw_log_topics: string;
|
|
196
|
+
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
197
|
+
sender_contract_decimals: number;
|
|
198
|
+
sender_name: string;
|
|
199
|
+
sender_contract_ticker_symbol: string;
|
|
200
|
+
sender_address: string;
|
|
201
|
+
sender_address_label: string;
|
|
202
|
+
/** * The contract logo URL. */
|
|
203
|
+
sender_logo_url: string;
|
|
204
|
+
raw_log_data: string;
|
|
205
|
+
decoded: DecodedItem;
|
|
206
|
+
constructor(data: LogEvent);
|
|
207
|
+
}
|
|
208
|
+
declare class DecodedItem {
|
|
209
|
+
name: string;
|
|
210
|
+
signature: string;
|
|
211
|
+
params: Param[];
|
|
212
|
+
constructor(data: DecodedItem);
|
|
213
|
+
}
|
|
214
|
+
declare class Param {
|
|
215
|
+
name: string;
|
|
216
|
+
type: string;
|
|
217
|
+
indexed: boolean;
|
|
218
|
+
decoded: boolean;
|
|
219
|
+
value: string;
|
|
220
|
+
constructor(data: Param);
|
|
221
|
+
}
|
|
222
|
+
declare class NftCollectionTraitsResponse {
|
|
223
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
224
|
+
updated_at: string;
|
|
225
|
+
/** * List of response items. */
|
|
226
|
+
items: NftTrait[];
|
|
227
|
+
constructor(data: NftCollectionTraitsResponse);
|
|
228
|
+
}
|
|
229
|
+
declare class NftTrait {
|
|
230
|
+
name: string;
|
|
231
|
+
constructor(data: NftTrait);
|
|
232
|
+
}
|
|
233
|
+
declare class NftCollectionAttributesForTraitResponse {
|
|
234
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
235
|
+
updated_at: string;
|
|
236
|
+
/** * List of response items. */
|
|
237
|
+
items: NftSummaryAttribute[];
|
|
238
|
+
constructor(data: NftCollectionAttributesForTraitResponse);
|
|
239
|
+
}
|
|
240
|
+
declare class NftSummaryAttribute {
|
|
241
|
+
trait_type: string;
|
|
242
|
+
values: NftAttribute[];
|
|
243
|
+
unique_values: number;
|
|
244
|
+
constructor(data: NftSummaryAttribute);
|
|
245
|
+
}
|
|
246
|
+
declare class NftAttribute {
|
|
247
|
+
value: string;
|
|
248
|
+
count: number;
|
|
249
|
+
constructor(data: NftAttribute);
|
|
250
|
+
}
|
|
251
|
+
declare class NftCollectionTraitSummaryResponse {
|
|
252
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
253
|
+
updated_at: string;
|
|
254
|
+
/** * List of response items. */
|
|
255
|
+
items: NftTraitSummary[];
|
|
256
|
+
constructor(data: NftCollectionTraitSummaryResponse);
|
|
257
|
+
}
|
|
258
|
+
declare class NftTraitSummary {
|
|
259
|
+
/** * Trait name */
|
|
260
|
+
name: string;
|
|
261
|
+
/** * Type of the value of the trait. */
|
|
262
|
+
value_type: string;
|
|
263
|
+
/** * Populated for `numeric` traits. */
|
|
264
|
+
value_numeric: NftTraitNumeric;
|
|
265
|
+
/** * Populated for `string` traits. */
|
|
266
|
+
value_string: NftTraitString;
|
|
267
|
+
attributes: NftSummaryAttribute[];
|
|
268
|
+
constructor(data: NftTraitSummary);
|
|
269
|
+
}
|
|
270
|
+
declare class NftTraitNumeric {
|
|
271
|
+
min: number;
|
|
272
|
+
max: number;
|
|
273
|
+
constructor(data: NftTraitNumeric);
|
|
274
|
+
}
|
|
275
|
+
declare class NftTraitString {
|
|
276
|
+
/** * String value */
|
|
277
|
+
value: string;
|
|
278
|
+
/** * Number of distinct tokens that have this trait value. */
|
|
279
|
+
token_count: number;
|
|
280
|
+
/** * Percentage of tokens in the collection that have this trait. */
|
|
281
|
+
trait_percentage: number;
|
|
282
|
+
constructor(data: NftTraitString);
|
|
283
|
+
}
|
|
284
|
+
declare class NftOwnershipForCollectionResponse {
|
|
285
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
286
|
+
updated_at: string;
|
|
287
|
+
/** * The requested address. */
|
|
288
|
+
address: string;
|
|
289
|
+
/** * The requested collection. */
|
|
290
|
+
collection: string;
|
|
291
|
+
/** * Denotes whether the token is suspected spam. Supports `eth-mainnet` and `matic-mainnet`. */
|
|
292
|
+
is_spam: boolean;
|
|
293
|
+
/** * List of response items. */
|
|
294
|
+
items: NftOwnershipForCollectionItem[];
|
|
295
|
+
constructor(data: NftOwnershipForCollectionResponse);
|
|
296
|
+
}
|
|
297
|
+
declare class NftOwnershipForCollectionItem {
|
|
298
|
+
/** * The string returned by the `name()` method. */
|
|
299
|
+
contract_name: string;
|
|
300
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
301
|
+
contract_ticker_symbol: string;
|
|
302
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
303
|
+
contract_address: string;
|
|
304
|
+
/** * The token's id. */
|
|
305
|
+
token_id: bigint | null;
|
|
306
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
307
|
+
supports_erc: string;
|
|
308
|
+
last_transfered_at: string;
|
|
309
|
+
/** * Nft balance. */
|
|
310
|
+
balance: bigint | null;
|
|
311
|
+
balance24h: number;
|
|
312
|
+
type: string;
|
|
313
|
+
nft_data: NftData;
|
|
314
|
+
constructor(data: NftOwnershipForCollectionItem);
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* NFT APIs
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
export declare class Response<T> {
|
|
321
|
+
data: T;
|
|
322
|
+
error: boolean;
|
|
323
|
+
error_code: number;
|
|
324
|
+
error_message: string;
|
|
325
|
+
}
|
|
326
|
+
export declare class NftService {
|
|
327
|
+
private apiKey;
|
|
328
|
+
constructor(apiKey: string);
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
332
|
+
* @param {number} pageSize - Number of items on a page.
|
|
333
|
+
* @param {number} pageNumber - 0-indexed page number to begin pagination.
|
|
334
|
+
* @param {boolean} noSpam - If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`.
|
|
335
|
+
*
|
|
336
|
+
*/
|
|
337
|
+
getChainCollections(chainName: Chains, pageSize?: number, pageNumber?: number, noSpam?: boolean): Promise<Response<ChainCollectionResponse>>;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
341
|
+
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
342
|
+
* @param {boolean} noSpam - If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`.
|
|
343
|
+
* @param {boolean} noNftAssetMetadata - If `true`, the response shape is limited to a list of collections and token ids, omitting metadata and asset information. Helpful for faster response times and wallets holding a large number of NFTs.
|
|
344
|
+
* @param {boolean} withUncached - By defaut, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side.
|
|
345
|
+
*
|
|
346
|
+
*/
|
|
347
|
+
getNftsForAddress(chainName: Chains, walletAddress: string, noSpam?: boolean, noNftAssetMetadata?: boolean, withUncached?: boolean): Promise<Response<NftAddressBalanceNftResponse>>;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
351
|
+
* @param {string} contractAddress - The requested NFT contract. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
352
|
+
* @param {boolean} noMetadata - Omit metadata.
|
|
353
|
+
* @param {number} pageSize - Number of items on a page.
|
|
354
|
+
* @param {number} pageNumber - 0-indexed page number to begin pagination.
|
|
355
|
+
* @param {string} traitsFilter - Filters NFTs based on a specific trait. If this filter is used, the API will return all NFTs with the specified trait. Accepts comma-separated values, is case-sensitive, and requires proper URL encoding.
|
|
356
|
+
* @param {string} valuesFilter - Filters NFTs based on a specific trait value. If this filter is used, the API will return all NFTs with the specified trait value. If used with "traits-filter", only NFTs matching both filters will be returned. Accepts comma-separated values, is case-sensitive, and requires proper URL encoding.
|
|
357
|
+
* @param {boolean} withUncached - By defaut, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side.
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
360
|
+
getTokenIdsForContractWithMetadata(chainName: Chains, contractAddress: string, noMetadata?: boolean, pageSize?: number, pageNumber?: number, traitsFilter?: string, valuesFilter?: string, withUncached?: boolean): Promise<Response<NftMetadataResponse>>;
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
364
|
+
* @param {string} contractAddress - The requested NFT contract. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
365
|
+
* @param {boolean} noMetadata - Omit metadata.
|
|
366
|
+
* @param {boolean} withUncached - By defaut, this endpoint only works on chains where we've cached the assets and the metadata. When set to `true`, the API will fetch metadata from upstream servers even if it's not cached - the downside being that the upstream server can block or rate limit the call and therefore resulting in time outs or slow response times on the Covalent side.
|
|
367
|
+
* @param {string} tokenId - The requested token ID.
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
getNftMetadataForGivenTokenIDForContract(chainName: Chains, contractAddress: string, tokenId: string, noMetadata?: boolean, withUncached?: boolean): Promise<Response<NftMetadataResponse>>;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
374
|
+
* @param {string} contractAddress - The requested NFT contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
375
|
+
* @param {string} tokenId - The requested token ID.
|
|
376
|
+
* @param {boolean} noSpam - If `true`, the suspected spam tokens are removed. Supports `eth-mainnet` and `matic-mainnet`.
|
|
377
|
+
*
|
|
378
|
+
*/
|
|
379
|
+
getNftTransactionsForContractTokenId(chainName: Chains, contractAddress: string, tokenId: string, noSpam?: boolean): Promise<Response<NftTransactionsResponse>>;
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
383
|
+
* @param {string} collectionContract - The requested collection address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
384
|
+
*
|
|
385
|
+
*/
|
|
386
|
+
getTraitsForCollection(chainName: Chains, collectionContract: string): Promise<Response<NftCollectionTraitsResponse>>;
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
390
|
+
* @param {string} collectionContract - The requested collection address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
391
|
+
* @param {string} trait - The requested trait.
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
getAttributesForTraitInCollection(chainName: Chains, collectionContract: string, trait: string): Promise<Response<NftCollectionAttributesForTraitResponse>>;
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
398
|
+
* @param {string} collectionContract - The requested collection address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
399
|
+
*
|
|
400
|
+
*/
|
|
401
|
+
getCollectionTraitsSummary(chainName: Chains, collectionContract: string): Promise<Response<NftCollectionTraitSummaryResponse>>;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
405
|
+
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
406
|
+
* @param {string} collectionContract - The requested collection address.
|
|
407
|
+
*
|
|
408
|
+
*/
|
|
409
|
+
checkOwnershipInNft(chainName: Chains, walletAddress: string, collectionContract: string): Promise<Response<NftOwnershipForCollectionResponse>>;
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
413
|
+
* @param {string} walletAddress - The requested address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
414
|
+
* @param {string} collectionContract - The requested collection address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
415
|
+
* @param {string} tokenId - The requested token ID.
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
checkOwnershipInNftForSpecificTokenId(chainName: Chains, walletAddress: string, collectionContract: string, tokenId: string): Promise<Response<NftOwnershipForCollectionResponse>>;
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
422
|
+
* @param {string} contractAddress - The requested NFT contract. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
423
|
+
* @param {string} tokenId - The requested token ID.
|
|
424
|
+
*
|
|
425
|
+
*/
|
|
426
|
+
getNftExternalMetadataForContract(chainName: Chains, contractAddress: string, tokenId: string): Promise<Response<NftMetadataResponse>>;
|
|
427
|
+
}
|
|
428
|
+
export {};
|