@avalabs/glacier-sdk 2.8.0-canary.df4401e.0 → 2.8.0-canary.ea6afdd.0
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/dist/index.d.ts +49 -14
- package/dist/index.js +29 -10
- package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
- package/esm/generated/services/NfTsService.d.ts +25 -0
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkService.d.ts +2 -2
- package/esm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1886,6 +1886,14 @@ declare class HealthCheckService {
|
|
|
1886
1886
|
}>;
|
|
1887
1887
|
}
|
|
1888
1888
|
|
|
1889
|
+
type ListNftTokens = {
|
|
1890
|
+
/**
|
|
1891
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1892
|
+
*/
|
|
1893
|
+
nextPageToken?: string;
|
|
1894
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1889
1897
|
declare class NfTsService {
|
|
1890
1898
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
1899
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1909,6 +1917,30 @@ declare class NfTsService {
|
|
|
1909
1917
|
*/
|
|
1910
1918
|
tokenId: string;
|
|
1911
1919
|
}): CancelablePromise<any>;
|
|
1920
|
+
/**
|
|
1921
|
+
* List tokens
|
|
1922
|
+
* Lists tokens for an NFT contract.
|
|
1923
|
+
* @returns ListNftTokens
|
|
1924
|
+
* @throws ApiError
|
|
1925
|
+
*/
|
|
1926
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
1927
|
+
/**
|
|
1928
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1929
|
+
*/
|
|
1930
|
+
chainId: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Contract address on the relevant chain.
|
|
1933
|
+
*/
|
|
1934
|
+
address: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1937
|
+
*/
|
|
1938
|
+
pageSize?: number;
|
|
1939
|
+
/**
|
|
1940
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1941
|
+
*/
|
|
1942
|
+
pageToken?: string;
|
|
1943
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
1944
|
/**
|
|
1913
1945
|
* Get token details
|
|
1914
1946
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -2025,17 +2057,6 @@ type OperationStatusResponse = {
|
|
|
2025
2057
|
declare class OperationsService {
|
|
2026
2058
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2059
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2060
|
/**
|
|
2040
2061
|
* Get operation
|
|
2041
2062
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2069,17 @@ declare class OperationsService {
|
|
|
2048
2069
|
*/
|
|
2049
2070
|
operationId: string;
|
|
2050
2071
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Create transaction export operation
|
|
2074
|
+
* Trigger a transaction export operation with given parameters.
|
|
2075
|
+
*
|
|
2076
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2077
|
+
* @returns OperationStatusResponse
|
|
2078
|
+
* @throws ApiError
|
|
2079
|
+
*/
|
|
2080
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2081
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2082
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2083
|
}
|
|
2052
2084
|
|
|
2053
2085
|
declare enum BlockchainIds {
|
|
@@ -2228,6 +2260,7 @@ type ValidatorHealthDetails = {
|
|
|
2228
2260
|
};
|
|
2229
2261
|
|
|
2230
2262
|
type ActiveValidatorDetails = {
|
|
2263
|
+
txHash: string;
|
|
2231
2264
|
nodeId: string;
|
|
2232
2265
|
subnetId: string;
|
|
2233
2266
|
amountStaked: string;
|
|
@@ -2251,6 +2284,7 @@ declare namespace ActiveValidatorDetails {
|
|
|
2251
2284
|
}
|
|
2252
2285
|
|
|
2253
2286
|
type CompletedValidatorDetails = {
|
|
2287
|
+
txHash: string;
|
|
2254
2288
|
nodeId: string;
|
|
2255
2289
|
subnetId: string;
|
|
2256
2290
|
amountStaked: string;
|
|
@@ -2268,6 +2302,7 @@ declare namespace CompletedValidatorDetails {
|
|
|
2268
2302
|
}
|
|
2269
2303
|
|
|
2270
2304
|
type PendingValidatorDetails = {
|
|
2305
|
+
txHash: string;
|
|
2271
2306
|
nodeId: string;
|
|
2272
2307
|
subnetId: string;
|
|
2273
2308
|
amountStaked: string;
|
|
@@ -2460,11 +2495,11 @@ declare class PrimaryNetworkService {
|
|
|
2460
2495
|
*/
|
|
2461
2496
|
pageToken?: string;
|
|
2462
2497
|
/**
|
|
2463
|
-
* The minimum
|
|
2498
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2464
2499
|
*/
|
|
2465
2500
|
minTimeRemaining?: any;
|
|
2466
2501
|
/**
|
|
2467
|
-
* The maximum
|
|
2502
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2468
2503
|
*/
|
|
2469
2504
|
maxTimeRemaining?: any;
|
|
2470
2505
|
/**
|
|
@@ -3936,4 +3971,4 @@ declare class ApiError extends Error {
|
|
|
3936
3971
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3937
3972
|
}
|
|
3938
3973
|
|
|
3939
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|
|
3974
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|
package/dist/index.js
CHANGED
|
@@ -855,6 +855,25 @@ class NfTsService {
|
|
|
855
855
|
}
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
+
listTokens({
|
|
859
|
+
chainId,
|
|
860
|
+
address,
|
|
861
|
+
pageSize = 10,
|
|
862
|
+
pageToken
|
|
863
|
+
}) {
|
|
864
|
+
return this.httpRequest.request({
|
|
865
|
+
method: "GET",
|
|
866
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
867
|
+
path: {
|
|
868
|
+
"chainId": chainId,
|
|
869
|
+
"address": address
|
|
870
|
+
},
|
|
871
|
+
query: {
|
|
872
|
+
"pageSize": pageSize,
|
|
873
|
+
"pageToken": pageToken
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
}
|
|
858
877
|
getTokenDetails({
|
|
859
878
|
chainId,
|
|
860
879
|
address,
|
|
@@ -876,16 +895,6 @@ class OperationsService {
|
|
|
876
895
|
constructor(httpRequest) {
|
|
877
896
|
this.httpRequest = httpRequest;
|
|
878
897
|
}
|
|
879
|
-
postTransactionExportJob({
|
|
880
|
-
requestBody
|
|
881
|
-
}) {
|
|
882
|
-
return this.httpRequest.request({
|
|
883
|
-
method: "POST",
|
|
884
|
-
url: "/v1/operations/transactions:export",
|
|
885
|
-
body: requestBody,
|
|
886
|
-
mediaType: "application/json"
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
898
|
getOperationResult({
|
|
890
899
|
operationId
|
|
891
900
|
}) {
|
|
@@ -897,6 +906,16 @@ class OperationsService {
|
|
|
897
906
|
}
|
|
898
907
|
});
|
|
899
908
|
}
|
|
909
|
+
postTransactionExportJob({
|
|
910
|
+
requestBody
|
|
911
|
+
}) {
|
|
912
|
+
return this.httpRequest.request({
|
|
913
|
+
method: "POST",
|
|
914
|
+
url: "/v1/operations/transactions:export",
|
|
915
|
+
body: requestBody,
|
|
916
|
+
mediaType: "application/json"
|
|
917
|
+
});
|
|
918
|
+
}
|
|
900
919
|
}
|
|
901
920
|
|
|
902
921
|
class PrimaryNetworkService {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Erc1155Token } from './Erc1155Token.js';
|
|
2
|
+
import { Erc721Token } from './Erc721Token.js';
|
|
3
|
+
|
|
4
|
+
type ListNftTokens = {
|
|
5
|
+
/**
|
|
6
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ListNftTokens };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
2
2
|
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { ListNftTokens } from '../models/ListNftTokens.js';
|
|
3
4
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
5
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
6
|
|
|
@@ -26,6 +27,30 @@ declare class NfTsService {
|
|
|
26
27
|
*/
|
|
27
28
|
tokenId: string;
|
|
28
29
|
}): CancelablePromise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* List tokens
|
|
32
|
+
* Lists tokens for an NFT contract.
|
|
33
|
+
* @returns ListNftTokens
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
37
|
+
/**
|
|
38
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
|
+
*/
|
|
40
|
+
chainId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Contract address on the relevant chain.
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
47
|
+
*/
|
|
48
|
+
pageSize?: number;
|
|
49
|
+
/**
|
|
50
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
51
|
+
*/
|
|
52
|
+
pageToken?: string;
|
|
53
|
+
}): CancelablePromise<ListNftTokens>;
|
|
29
54
|
/**
|
|
30
55
|
* Get token details
|
|
31
56
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -17,6 +17,25 @@ class NfTsService {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
listTokens({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
pageSize = 10,
|
|
24
|
+
pageToken
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
+
path: {
|
|
30
|
+
"chainId": chainId,
|
|
31
|
+
"address": address
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
"pageSize": pageSize,
|
|
35
|
+
"pageToken": pageToken
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
20
39
|
getTokenDetails({
|
|
21
40
|
chainId,
|
|
22
41
|
address,
|
|
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
|
7
7
|
declare class OperationsService {
|
|
8
8
|
readonly httpRequest: BaseHttpRequest;
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* Create transaction export operation
|
|
12
|
-
* Trigger a transaction export operation with given parameters.
|
|
13
|
-
*
|
|
14
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
15
|
-
* @returns OperationStatusResponse
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
postTransactionExportJob({ requestBody, }: {
|
|
19
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
20
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
21
10
|
/**
|
|
22
11
|
* Get operation
|
|
23
12
|
* Gets operation details for the given operation id.
|
|
@@ -30,6 +19,17 @@ declare class OperationsService {
|
|
|
30
19
|
*/
|
|
31
20
|
operationId: string;
|
|
32
21
|
}): CancelablePromise<OperationStatusResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create transaction export operation
|
|
24
|
+
* Trigger a transaction export operation with given parameters.
|
|
25
|
+
*
|
|
26
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
27
|
+
* @returns OperationStatusResponse
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
postTransactionExportJob({ requestBody, }: {
|
|
31
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
32
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { OperationsService };
|
|
@@ -2,16 +2,6 @@ class OperationsService {
|
|
|
2
2
|
constructor(httpRequest) {
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
|
-
postTransactionExportJob({
|
|
6
|
-
requestBody
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "POST",
|
|
10
|
-
url: "/v1/operations/transactions:export",
|
|
11
|
-
body: requestBody,
|
|
12
|
-
mediaType: "application/json"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
5
|
getOperationResult({
|
|
16
6
|
operationId
|
|
17
7
|
}) {
|
|
@@ -23,6 +13,16 @@ class OperationsService {
|
|
|
23
13
|
}
|
|
24
14
|
});
|
|
25
15
|
}
|
|
16
|
+
postTransactionExportJob({
|
|
17
|
+
requestBody
|
|
18
|
+
}) {
|
|
19
|
+
return this.httpRequest.request({
|
|
20
|
+
method: "POST",
|
|
21
|
+
url: "/v1/operations/transactions:export",
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { OperationsService };
|
|
@@ -132,11 +132,11 @@ declare class PrimaryNetworkService {
|
|
|
132
132
|
*/
|
|
133
133
|
pageToken?: string;
|
|
134
134
|
/**
|
|
135
|
-
* The minimum
|
|
135
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
136
136
|
*/
|
|
137
137
|
minTimeRemaining?: any;
|
|
138
138
|
/**
|
|
139
|
-
* The maximum
|
|
139
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
140
140
|
*/
|
|
141
141
|
maxTimeRemaining?: any;
|
|
142
142
|
/**
|
package/esm/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.
|
|
|
81
81
|
export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
|
|
82
82
|
export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
|
|
83
83
|
export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
|
|
84
|
+
export { ListNftTokens } from './generated/models/ListNftTokens.js';
|
|
84
85
|
export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
|
|
85
86
|
export { ListPChainTransactionsResponse } from './generated/models/ListPChainTransactionsResponse.js';
|
|
86
87
|
export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-canary.
|
|
3
|
+
"version": "2.8.0-canary.ea6afdd.0+ea6afdd",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "ea6afddfd70aac5f305d87391b404b336fb3cdf5"
|
|
33
33
|
}
|