@dfns/sdk 0.2.5 → 0.3.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/dfnsApiClient.d.ts +1 -6
- package/dfnsApiClient.js +0 -7
- package/dfnsDelegatedApiClient.d.ts +1 -6
- package/dfnsDelegatedApiClient.js +0 -7
- package/dfnsError.d.ts +5 -0
- package/dfnsError.js +15 -1
- package/generated/permissions/client.js +8 -8
- package/generated/permissions/delegatedClient.js +13 -13
- package/generated/permissions/types.d.ts +33 -120
- package/generated/policies/types.d.ts +340 -387
- package/generated/wallets/types.d.ts +183 -30
- package/generated/webhooks/types.d.ts +10 -9
- package/package.json +1 -1
- package/utils/fetch.js +14 -2
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +0 -27
- package/codegen/Permissions/DelegatedPermissionsClient.js +0 -284
- package/codegen/Permissions/PermissionsClient.d.ts +0 -18
- package/codegen/Permissions/PermissionsClient.js +0 -156
- package/codegen/Permissions/index.d.ts +0 -3
- package/codegen/Permissions/index.js +0 -19
- package/codegen/Permissions/types.d.ts +0 -62
- package/codegen/Permissions/types.js +0 -2
|
@@ -35,7 +35,7 @@ export type BroadcastTransactionParams = {
|
|
|
35
35
|
export type BroadcastTransactionResponse = {
|
|
36
36
|
id: string;
|
|
37
37
|
walletId: string;
|
|
38
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
38
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
39
39
|
requester: {
|
|
40
40
|
userId: string;
|
|
41
41
|
tokenId?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export type BroadcastTransactionRequest = BroadcastTransactionParams & {
|
|
|
85
85
|
body: BroadcastTransactionBody;
|
|
86
86
|
};
|
|
87
87
|
export type CreateWalletBody = {
|
|
88
|
-
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "
|
|
88
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "OptimismGoerli" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
89
89
|
name?: string | undefined;
|
|
90
90
|
externalId?: string | undefined;
|
|
91
91
|
tags?: string[] | undefined;
|
|
@@ -93,7 +93,7 @@ export type CreateWalletBody = {
|
|
|
93
93
|
};
|
|
94
94
|
export type CreateWalletResponse = {
|
|
95
95
|
id: string;
|
|
96
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
96
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
97
97
|
address?: string | undefined;
|
|
98
98
|
signingKey: {
|
|
99
99
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -189,7 +189,7 @@ export type GenerateSignatureParams = {
|
|
|
189
189
|
export type GenerateSignatureResponse = {
|
|
190
190
|
id: string;
|
|
191
191
|
walletId: string;
|
|
192
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
192
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
193
193
|
requester: {
|
|
194
194
|
userId: string;
|
|
195
195
|
tokenId?: string | undefined;
|
|
@@ -258,7 +258,7 @@ export type GetSignatureParams = {
|
|
|
258
258
|
export type GetSignatureResponse = {
|
|
259
259
|
id: string;
|
|
260
260
|
walletId: string;
|
|
261
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
261
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
262
262
|
requester: {
|
|
263
263
|
userId: string;
|
|
264
264
|
tokenId?: string | undefined;
|
|
@@ -325,7 +325,7 @@ export type GetTransactionParams = {
|
|
|
325
325
|
export type GetTransactionResponse = {
|
|
326
326
|
id: string;
|
|
327
327
|
walletId: string;
|
|
328
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
328
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
329
329
|
requester: {
|
|
330
330
|
userId: string;
|
|
331
331
|
tokenId?: string | undefined;
|
|
@@ -379,7 +379,7 @@ export type GetTransferParams = {
|
|
|
379
379
|
export type GetTransferResponse = {
|
|
380
380
|
id: string;
|
|
381
381
|
walletId: string;
|
|
382
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
382
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
383
383
|
requester: {
|
|
384
384
|
userId: string;
|
|
385
385
|
tokenId?: string | undefined;
|
|
@@ -387,7 +387,7 @@ export type GetTransferResponse = {
|
|
|
387
387
|
};
|
|
388
388
|
requestBody: {
|
|
389
389
|
kind: "Native";
|
|
390
|
-
to: string | string | string | string | string | string;
|
|
390
|
+
to: string | string | string | string | string | string | string;
|
|
391
391
|
amount: string;
|
|
392
392
|
memo?: string | undefined;
|
|
393
393
|
} | {
|
|
@@ -415,6 +415,11 @@ export type GetTransferResponse = {
|
|
|
415
415
|
contract: string;
|
|
416
416
|
to: string;
|
|
417
417
|
tokenId: string;
|
|
418
|
+
} | {
|
|
419
|
+
kind: "Asa";
|
|
420
|
+
assetId: string;
|
|
421
|
+
to: string;
|
|
422
|
+
amount: string;
|
|
418
423
|
};
|
|
419
424
|
metadata: {
|
|
420
425
|
asset: {
|
|
@@ -441,7 +446,7 @@ export type GetWalletParams = {
|
|
|
441
446
|
};
|
|
442
447
|
export type GetWalletResponse = {
|
|
443
448
|
id: string;
|
|
444
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
449
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
445
450
|
address?: string | undefined;
|
|
446
451
|
signingKey: {
|
|
447
452
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -463,10 +468,12 @@ export type GetWalletAssetsParams = {
|
|
|
463
468
|
};
|
|
464
469
|
export type GetWalletAssetsResponse = {
|
|
465
470
|
walletId: string;
|
|
466
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
471
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
467
472
|
assets: {
|
|
468
|
-
kind: "Native" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
473
|
+
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
474
|
+
assetId?: string | undefined;
|
|
469
475
|
contract?: string | undefined;
|
|
476
|
+
tokenId?: string | undefined;
|
|
470
477
|
symbol?: string | undefined;
|
|
471
478
|
decimals: number;
|
|
472
479
|
verified?: boolean | undefined;
|
|
@@ -481,16 +488,16 @@ export type GetWalletHistoryQuery = {
|
|
|
481
488
|
limit?: string | undefined;
|
|
482
489
|
paginationToken?: string | undefined;
|
|
483
490
|
direction?: ("In" | "Out") | undefined;
|
|
484
|
-
kind?: ("NativeTransfer" | "Erc20Transfer" | "Erc721Transfer" | "UtxoTransfer") | undefined;
|
|
491
|
+
kind?: ("NativeTransfer" | "AsaTransfer" | "Erc20Transfer" | "Erc721Transfer" | "Trc10Transfer" | "Trc20Transfer" | "Trc721Transfer" | "UtxoTransfer") | undefined;
|
|
485
492
|
contract?: string | undefined;
|
|
486
493
|
};
|
|
487
494
|
export type GetWalletHistoryResponse = {
|
|
488
495
|
walletId: string;
|
|
489
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
496
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
490
497
|
items: ({
|
|
491
498
|
walletId: string;
|
|
492
499
|
direction: "In" | "Out";
|
|
493
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
500
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
494
501
|
blockNumber: number;
|
|
495
502
|
txHash: string;
|
|
496
503
|
index?: string | undefined;
|
|
@@ -527,7 +534,42 @@ export type GetWalletHistoryResponse = {
|
|
|
527
534
|
} | {
|
|
528
535
|
walletId: string;
|
|
529
536
|
direction: "In" | "Out";
|
|
530
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
537
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
538
|
+
blockNumber: number;
|
|
539
|
+
txHash: string;
|
|
540
|
+
index?: string | undefined;
|
|
541
|
+
timestamp: string;
|
|
542
|
+
metadata: {
|
|
543
|
+
asset: {
|
|
544
|
+
symbol?: string | undefined;
|
|
545
|
+
decimals?: number | undefined;
|
|
546
|
+
verified?: boolean | undefined;
|
|
547
|
+
quotes?: {
|
|
548
|
+
[x: string]: number;
|
|
549
|
+
} | undefined;
|
|
550
|
+
};
|
|
551
|
+
fee?: {
|
|
552
|
+
symbol?: string | undefined;
|
|
553
|
+
decimals?: number | undefined;
|
|
554
|
+
verified?: boolean | undefined;
|
|
555
|
+
quotes?: {
|
|
556
|
+
[x: string]: number;
|
|
557
|
+
} | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
};
|
|
560
|
+
kind: "AsaTransfer";
|
|
561
|
+
assetId: string;
|
|
562
|
+
from: string;
|
|
563
|
+
to: string;
|
|
564
|
+
value: string;
|
|
565
|
+
fee?: string | undefined;
|
|
566
|
+
optIn?: boolean | undefined;
|
|
567
|
+
optOut?: boolean | undefined;
|
|
568
|
+
clawback?: boolean | undefined;
|
|
569
|
+
} | {
|
|
570
|
+
walletId: string;
|
|
571
|
+
direction: "In" | "Out";
|
|
572
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
531
573
|
blockNumber: number;
|
|
532
574
|
txHash: string;
|
|
533
575
|
index?: string | undefined;
|
|
@@ -565,7 +607,7 @@ export type GetWalletHistoryResponse = {
|
|
|
565
607
|
} | {
|
|
566
608
|
walletId: string;
|
|
567
609
|
direction: "In" | "Out";
|
|
568
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
610
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
569
611
|
blockNumber: number;
|
|
570
612
|
txHash: string;
|
|
571
613
|
index?: string | undefined;
|
|
@@ -601,7 +643,103 @@ export type GetWalletHistoryResponse = {
|
|
|
601
643
|
} | {
|
|
602
644
|
walletId: string;
|
|
603
645
|
direction: "In" | "Out";
|
|
604
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
646
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
647
|
+
blockNumber: number;
|
|
648
|
+
txHash: string;
|
|
649
|
+
index?: string | undefined;
|
|
650
|
+
timestamp: string;
|
|
651
|
+
metadata: {
|
|
652
|
+
asset: {
|
|
653
|
+
symbol?: string | undefined;
|
|
654
|
+
decimals?: number | undefined;
|
|
655
|
+
verified?: boolean | undefined;
|
|
656
|
+
quotes?: {
|
|
657
|
+
[x: string]: number;
|
|
658
|
+
} | undefined;
|
|
659
|
+
};
|
|
660
|
+
fee?: {
|
|
661
|
+
symbol?: string | undefined;
|
|
662
|
+
decimals?: number | undefined;
|
|
663
|
+
verified?: boolean | undefined;
|
|
664
|
+
quotes?: {
|
|
665
|
+
[x: string]: number;
|
|
666
|
+
} | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
};
|
|
669
|
+
kind: "Trc10Transfer";
|
|
670
|
+
tokenId: string;
|
|
671
|
+
from: string;
|
|
672
|
+
to: string;
|
|
673
|
+
value: string;
|
|
674
|
+
fee?: string | undefined;
|
|
675
|
+
} | {
|
|
676
|
+
walletId: string;
|
|
677
|
+
direction: "In" | "Out";
|
|
678
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
679
|
+
blockNumber: number;
|
|
680
|
+
txHash: string;
|
|
681
|
+
index?: string | undefined;
|
|
682
|
+
timestamp: string;
|
|
683
|
+
metadata: {
|
|
684
|
+
asset: {
|
|
685
|
+
symbol?: string | undefined;
|
|
686
|
+
decimals?: number | undefined;
|
|
687
|
+
verified?: boolean | undefined;
|
|
688
|
+
quotes?: {
|
|
689
|
+
[x: string]: number;
|
|
690
|
+
} | undefined;
|
|
691
|
+
};
|
|
692
|
+
fee?: {
|
|
693
|
+
symbol?: string | undefined;
|
|
694
|
+
decimals?: number | undefined;
|
|
695
|
+
verified?: boolean | undefined;
|
|
696
|
+
quotes?: {
|
|
697
|
+
[x: string]: number;
|
|
698
|
+
} | undefined;
|
|
699
|
+
} | undefined;
|
|
700
|
+
};
|
|
701
|
+
kind: "Trc20Transfer";
|
|
702
|
+
contract: string;
|
|
703
|
+
from: string;
|
|
704
|
+
to: string;
|
|
705
|
+
value: string;
|
|
706
|
+
fee?: string | undefined;
|
|
707
|
+
} | {
|
|
708
|
+
walletId: string;
|
|
709
|
+
direction: "In" | "Out";
|
|
710
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
711
|
+
blockNumber: number;
|
|
712
|
+
txHash: string;
|
|
713
|
+
index?: string | undefined;
|
|
714
|
+
timestamp: string;
|
|
715
|
+
metadata: {
|
|
716
|
+
asset: {
|
|
717
|
+
symbol?: string | undefined;
|
|
718
|
+
decimals?: number | undefined;
|
|
719
|
+
verified?: boolean | undefined;
|
|
720
|
+
quotes?: {
|
|
721
|
+
[x: string]: number;
|
|
722
|
+
} | undefined;
|
|
723
|
+
};
|
|
724
|
+
fee?: {
|
|
725
|
+
symbol?: string | undefined;
|
|
726
|
+
decimals?: number | undefined;
|
|
727
|
+
verified?: boolean | undefined;
|
|
728
|
+
quotes?: {
|
|
729
|
+
[x: string]: number;
|
|
730
|
+
} | undefined;
|
|
731
|
+
} | undefined;
|
|
732
|
+
};
|
|
733
|
+
kind: "Trc721Transfer";
|
|
734
|
+
contract: string;
|
|
735
|
+
from: string;
|
|
736
|
+
to: string;
|
|
737
|
+
tokenId: string;
|
|
738
|
+
fee?: string | undefined;
|
|
739
|
+
} | {
|
|
740
|
+
walletId: string;
|
|
741
|
+
direction: "In" | "Out";
|
|
742
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
605
743
|
blockNumber: number;
|
|
606
744
|
txHash: string;
|
|
607
745
|
index?: string | undefined;
|
|
@@ -640,9 +778,9 @@ export type GetWalletNftsParams = {
|
|
|
640
778
|
};
|
|
641
779
|
export type GetWalletNftsResponse = {
|
|
642
780
|
walletId: string;
|
|
643
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
781
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
644
782
|
nfts: {
|
|
645
|
-
kind: "Native" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
783
|
+
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
646
784
|
contract?: string | undefined;
|
|
647
785
|
symbol?: string | undefined;
|
|
648
786
|
verified?: boolean | undefined;
|
|
@@ -652,7 +790,7 @@ export type GetWalletNftsResponse = {
|
|
|
652
790
|
};
|
|
653
791
|
export type GetWalletNftsRequest = GetWalletNftsParams;
|
|
654
792
|
export type ImportWalletBody = {
|
|
655
|
-
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "
|
|
793
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "OptimismGoerli" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
656
794
|
name?: string | undefined;
|
|
657
795
|
externalId?: string | undefined;
|
|
658
796
|
tags?: string[] | undefined;
|
|
@@ -666,7 +804,7 @@ export type ImportWalletBody = {
|
|
|
666
804
|
};
|
|
667
805
|
export type ImportWalletResponse = {
|
|
668
806
|
id: string;
|
|
669
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
807
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
670
808
|
address?: string | undefined;
|
|
671
809
|
signingKey: {
|
|
672
810
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -697,7 +835,7 @@ export type ListSignaturesResponse = {
|
|
|
697
835
|
items: {
|
|
698
836
|
id: string;
|
|
699
837
|
walletId: string;
|
|
700
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
838
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
701
839
|
requester: {
|
|
702
840
|
userId: string;
|
|
703
841
|
tokenId?: string | undefined;
|
|
@@ -773,7 +911,7 @@ export type ListTransactionsResponse = {
|
|
|
773
911
|
items: {
|
|
774
912
|
id: string;
|
|
775
913
|
walletId: string;
|
|
776
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
914
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
777
915
|
requester: {
|
|
778
916
|
userId: string;
|
|
779
917
|
tokenId?: string | undefined;
|
|
@@ -836,7 +974,7 @@ export type ListTransfersResponse = {
|
|
|
836
974
|
items: {
|
|
837
975
|
id: string;
|
|
838
976
|
walletId: string;
|
|
839
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
977
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
840
978
|
requester: {
|
|
841
979
|
userId: string;
|
|
842
980
|
tokenId?: string | undefined;
|
|
@@ -844,7 +982,7 @@ export type ListTransfersResponse = {
|
|
|
844
982
|
};
|
|
845
983
|
requestBody: {
|
|
846
984
|
kind: "Native";
|
|
847
|
-
to: string | string | string | string | string | string;
|
|
985
|
+
to: string | string | string | string | string | string | string;
|
|
848
986
|
amount: string;
|
|
849
987
|
memo?: string | undefined;
|
|
850
988
|
} | {
|
|
@@ -872,6 +1010,11 @@ export type ListTransfersResponse = {
|
|
|
872
1010
|
contract: string;
|
|
873
1011
|
to: string;
|
|
874
1012
|
tokenId: string;
|
|
1013
|
+
} | {
|
|
1014
|
+
kind: "Asa";
|
|
1015
|
+
assetId: string;
|
|
1016
|
+
to: string;
|
|
1017
|
+
amount: string;
|
|
875
1018
|
};
|
|
876
1019
|
metadata: {
|
|
877
1020
|
asset: {
|
|
@@ -904,7 +1047,7 @@ export type ListWalletsQuery = {
|
|
|
904
1047
|
export type ListWalletsResponse = {
|
|
905
1048
|
items: {
|
|
906
1049
|
id: string;
|
|
907
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1050
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
908
1051
|
address?: string | undefined;
|
|
909
1052
|
signingKey: {
|
|
910
1053
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -927,7 +1070,7 @@ export type ListWalletsRequest = {
|
|
|
927
1070
|
};
|
|
928
1071
|
export type TransferAssetBody = {
|
|
929
1072
|
kind: "Native";
|
|
930
|
-
to: string | string | string | string | string | string;
|
|
1073
|
+
to: string | string | string | string | string | string | string;
|
|
931
1074
|
amount: string;
|
|
932
1075
|
memo?: string | undefined;
|
|
933
1076
|
} | {
|
|
@@ -955,6 +1098,11 @@ export type TransferAssetBody = {
|
|
|
955
1098
|
contract: string;
|
|
956
1099
|
to: string;
|
|
957
1100
|
tokenId: string;
|
|
1101
|
+
} | {
|
|
1102
|
+
kind: "Asa";
|
|
1103
|
+
assetId: string;
|
|
1104
|
+
to: string;
|
|
1105
|
+
amount: string;
|
|
958
1106
|
};
|
|
959
1107
|
export type TransferAssetParams = {
|
|
960
1108
|
walletId: string;
|
|
@@ -962,7 +1110,7 @@ export type TransferAssetParams = {
|
|
|
962
1110
|
export type TransferAssetResponse = {
|
|
963
1111
|
id: string;
|
|
964
1112
|
walletId: string;
|
|
965
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1113
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
966
1114
|
requester: {
|
|
967
1115
|
userId: string;
|
|
968
1116
|
tokenId?: string | undefined;
|
|
@@ -970,7 +1118,7 @@ export type TransferAssetResponse = {
|
|
|
970
1118
|
};
|
|
971
1119
|
requestBody: {
|
|
972
1120
|
kind: "Native";
|
|
973
|
-
to: string | string | string | string | string | string;
|
|
1121
|
+
to: string | string | string | string | string | string | string;
|
|
974
1122
|
amount: string;
|
|
975
1123
|
memo?: string | undefined;
|
|
976
1124
|
} | {
|
|
@@ -998,6 +1146,11 @@ export type TransferAssetResponse = {
|
|
|
998
1146
|
contract: string;
|
|
999
1147
|
to: string;
|
|
1000
1148
|
tokenId: string;
|
|
1149
|
+
} | {
|
|
1150
|
+
kind: "Asa";
|
|
1151
|
+
assetId: string;
|
|
1152
|
+
to: string;
|
|
1153
|
+
amount: string;
|
|
1001
1154
|
};
|
|
1002
1155
|
metadata: {
|
|
1003
1156
|
asset: {
|
|
@@ -1029,7 +1182,7 @@ export type UpdateWalletParams = {
|
|
|
1029
1182
|
};
|
|
1030
1183
|
export type UpdateWalletResponse = {
|
|
1031
1184
|
id: string;
|
|
1032
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1185
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1033
1186
|
address?: string | undefined;
|
|
1034
1187
|
signingKey: {
|
|
1035
1188
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -3,7 +3,7 @@ export type CreateWebhookBody = {
|
|
|
3
3
|
/** Webhook status */
|
|
4
4
|
status?: ("Enabled" | "Disabled") | undefined;
|
|
5
5
|
description?: string | undefined;
|
|
6
|
-
events: ("
|
|
6
|
+
events: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[];
|
|
7
7
|
};
|
|
8
8
|
export type CreateWebhookResponse = {
|
|
9
9
|
/** Webhook ID */
|
|
@@ -11,7 +11,7 @@ export type CreateWebhookResponse = {
|
|
|
11
11
|
/** Webhook url */
|
|
12
12
|
url: string;
|
|
13
13
|
/** All events this webhook is subscribed to. */
|
|
14
|
-
events: ("
|
|
14
|
+
events: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[];
|
|
15
15
|
/** Webhook status */
|
|
16
16
|
status: "Enabled" | "Disabled";
|
|
17
17
|
/** Short description this webhook's purpose */
|
|
@@ -42,7 +42,7 @@ export type GetWebhookResponse = {
|
|
|
42
42
|
/** Webhook url */
|
|
43
43
|
url: string;
|
|
44
44
|
/** All events this webhook is subscribed to. */
|
|
45
|
-
events: ("
|
|
45
|
+
events: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[];
|
|
46
46
|
/** Webhook status */
|
|
47
47
|
status: "Enabled" | "Disabled";
|
|
48
48
|
/** Short description this webhook's purpose */
|
|
@@ -63,7 +63,7 @@ export type GetWebhookEventResponse = {
|
|
|
63
63
|
/** ISO date string when event was raised */
|
|
64
64
|
date: string;
|
|
65
65
|
/** Webhook event */
|
|
66
|
-
kind: "
|
|
66
|
+
kind: "wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected";
|
|
67
67
|
data: {
|
|
68
68
|
[x: string]: any;
|
|
69
69
|
};
|
|
@@ -79,7 +79,8 @@ export type ListWebhookEventsParams = {
|
|
|
79
79
|
webhookId: string;
|
|
80
80
|
};
|
|
81
81
|
export type ListWebhookEventsQuery = {
|
|
82
|
-
kind?: ("
|
|
82
|
+
kind?: ("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | undefined;
|
|
83
|
+
deliveryFailed?: ("true" | "false") | undefined;
|
|
83
84
|
limit?: number | undefined;
|
|
84
85
|
paginationToken?: string | undefined;
|
|
85
86
|
};
|
|
@@ -90,7 +91,7 @@ export type ListWebhookEventsResponse = {
|
|
|
90
91
|
/** ISO date string when event was raised */
|
|
91
92
|
date: string;
|
|
92
93
|
/** Webhook event */
|
|
93
|
-
kind: "
|
|
94
|
+
kind: "wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected";
|
|
94
95
|
data: {
|
|
95
96
|
[x: string]: any;
|
|
96
97
|
};
|
|
@@ -117,7 +118,7 @@ export type ListWebhooksResponse = {
|
|
|
117
118
|
/** Webhook url */
|
|
118
119
|
url: string;
|
|
119
120
|
/** All events this webhook is subscribed to. */
|
|
120
|
-
events: ("
|
|
121
|
+
events: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[];
|
|
121
122
|
/** Webhook status */
|
|
122
123
|
status: "Enabled" | "Disabled";
|
|
123
124
|
/** Short description this webhook's purpose */
|
|
@@ -143,7 +144,7 @@ export type PingWebhookRequest = PingWebhookParams;
|
|
|
143
144
|
export type UpdateWebhookBody = {
|
|
144
145
|
url?: string | undefined;
|
|
145
146
|
description?: (string | undefined) | undefined;
|
|
146
|
-
events?: ("
|
|
147
|
+
events?: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[] | undefined;
|
|
147
148
|
/** Webhook status */
|
|
148
149
|
status?: (("Enabled" | "Disabled") | undefined) | undefined;
|
|
149
150
|
};
|
|
@@ -156,7 +157,7 @@ export type UpdateWebhookResponse = {
|
|
|
156
157
|
/** Webhook url */
|
|
157
158
|
url: string;
|
|
158
159
|
/** All events this webhook is subscribed to. */
|
|
159
|
-
events: ("
|
|
160
|
+
events: (("wallet.created" | "wallet.exported" | "wallet.delegated" | "wallet.signature.requested" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.signed" | "wallet.transaction.requested" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transfer.requested" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.blockchainevent.detected") | "*")[];
|
|
160
161
|
/** Webhook status */
|
|
161
162
|
status: "Enabled" | "Disabled";
|
|
162
163
|
/** Short description this webhook's purpose */
|
package/package.json
CHANGED
package/utils/fetch.js
CHANGED
|
@@ -41,6 +41,18 @@ const errorHandler = (fetch) => {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
// raise a 202 response by policy execution as error
|
|
45
|
+
const catchPolicyPending = (fetch) => {
|
|
46
|
+
return async (resource, options) => {
|
|
47
|
+
const response = await fetch(resource, options);
|
|
48
|
+
if (response.status === dfnsError_1.PolicyPendingError.HTTP_ACCEPTED) {
|
|
49
|
+
throw new dfnsError_1.PolicyPendingError(await response.json());
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return response;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
44
56
|
const dfnsAuth = (fetch) => {
|
|
45
57
|
return async (resource, options) => {
|
|
46
58
|
const { appId, appSecret, authToken } = options.apiOptions;
|
|
@@ -90,5 +102,5 @@ const userAction = (fetch) => {
|
|
|
90
102
|
return fetch(resource, options);
|
|
91
103
|
};
|
|
92
104
|
};
|
|
93
|
-
exports.simpleFetch = fullUrl(jsonSerializer(dfnsAuth(errorHandler(cross_fetch_1.fetch))));
|
|
94
|
-
exports.userActionFetch = fullUrl(jsonSerializer(dfnsAuth(userAction(errorHandler(cross_fetch_1.fetch)))));
|
|
105
|
+
exports.simpleFetch = fullUrl(jsonSerializer(dfnsAuth(catchPolicyPending(errorHandler(cross_fetch_1.fetch)))));
|
|
106
|
+
exports.userActionFetch = fullUrl(jsonSerializer(dfnsAuth(userAction(catchPolicyPending(errorHandler(cross_fetch_1.fetch))))));
|