@dfns/sdk 0.8.23 → 0.8.25
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/generated/allocations/types.d.ts +98 -8
- package/generated/auth/types.d.ts +30 -3
- package/generated/exchanges/types.d.ts +1 -1
- package/generated/feeSponsors/types.d.ts +6 -6
- package/generated/keys/types.d.ts +60 -60
- package/generated/networks/types.d.ts +6 -6
- package/generated/payins/client.d.ts +8 -0
- package/generated/payins/client.js +36 -0
- package/generated/payins/delegatedClient.d.ts +10 -0
- package/generated/payins/delegatedClient.js +50 -0
- package/generated/payins/index.d.ts +3 -0
- package/generated/payins/index.js +19 -0
- package/generated/payins/types.d.ts +45 -0
- package/generated/payins/types.js +2 -0
- package/generated/payouts/types.d.ts +309 -9
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +462 -234
- package/generated/signers/client.d.ts +5 -0
- package/generated/signers/client.js +25 -0
- package/generated/signers/delegatedClient.d.ts +2 -0
- package/generated/signers/delegatedClient.js +27 -0
- package/generated/signers/types.d.ts +99 -0
- package/generated/swaps/types.d.ts +10 -10
- package/generated/vaults/client.d.ts +17 -0
- package/generated/vaults/client.js +141 -0
- package/generated/vaults/delegatedClient.d.ts +25 -0
- package/generated/vaults/delegatedClient.js +245 -0
- package/generated/vaults/index.d.ts +3 -0
- package/generated/vaults/index.js +19 -0
- package/generated/vaults/types.d.ts +959 -0
- package/generated/vaults/types.js +2 -0
- package/generated/wallets/types.d.ts +325 -225
- package/generated/webhooks/types.d.ts +9 -9
- package/package.json +1 -1
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
export type CreateVaultBody = {
|
|
2
|
+
name?: string | undefined;
|
|
3
|
+
tags?: string[];
|
|
4
|
+
externalId?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type CreateVaultResponse = {
|
|
7
|
+
/** Vault id. */
|
|
8
|
+
id: string;
|
|
9
|
+
orgId: string;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
tags: string[];
|
|
12
|
+
externalId?: string | undefined;
|
|
13
|
+
dateCreated: string;
|
|
14
|
+
dateUpdated: string;
|
|
15
|
+
/** The vault's addresses. */
|
|
16
|
+
addresses?: {
|
|
17
|
+
walletId: string;
|
|
18
|
+
network: string;
|
|
19
|
+
address: string;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type CreateVaultRequest = {
|
|
23
|
+
body: CreateVaultBody;
|
|
24
|
+
};
|
|
25
|
+
export type CreateVaultAddressBody = {
|
|
26
|
+
network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
|
|
27
|
+
};
|
|
28
|
+
export type CreateVaultAddressParams = {
|
|
29
|
+
/** Vault id. */
|
|
30
|
+
vaultId: string;
|
|
31
|
+
};
|
|
32
|
+
export type CreateVaultAddressResponse = {
|
|
33
|
+
walletId: string;
|
|
34
|
+
network: string;
|
|
35
|
+
address: string;
|
|
36
|
+
};
|
|
37
|
+
export type CreateVaultAddressRequest = CreateVaultAddressParams & {
|
|
38
|
+
body: CreateVaultAddressBody;
|
|
39
|
+
};
|
|
40
|
+
export type CreateVaultTransferBody = {
|
|
41
|
+
/** The EVM network the transfer is on. */
|
|
42
|
+
network: "Adi" | "AdiTestnet" | "AdiTestnetAb" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiPacific1" | "SeiAtlantic2" | "Sonic" | "SonicTestnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia";
|
|
43
|
+
/** The token identifier of the asset to transfer (e.g. `native:eth` or `erc20:0x...`). */
|
|
44
|
+
tid: string;
|
|
45
|
+
/** The destination address. */
|
|
46
|
+
to: string;
|
|
47
|
+
/** The amount to transfer, in minimum denomination. */
|
|
48
|
+
amount: string;
|
|
49
|
+
/** A unique id from your system. */
|
|
50
|
+
externalId?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
export type CreateVaultTransferParams = {
|
|
53
|
+
/** Vault id. */
|
|
54
|
+
vaultId: string;
|
|
55
|
+
};
|
|
56
|
+
export type CreateVaultTransferResponse = {
|
|
57
|
+
/** Transfer id. */
|
|
58
|
+
id: string;
|
|
59
|
+
/** The source wallet for this tranfer. */
|
|
60
|
+
walletId: string;
|
|
61
|
+
/** The blockchain network this transfer is on. */
|
|
62
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "BesuTestnet2" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "Robinhood" | "RobinhoodSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
63
|
+
/** The user who initiated the request. */
|
|
64
|
+
requester: {
|
|
65
|
+
/** User id. */
|
|
66
|
+
userId: string;
|
|
67
|
+
/** Token id. */
|
|
68
|
+
tokenId?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
requestBody: {
|
|
71
|
+
kind: "Native";
|
|
72
|
+
/** The destination address. */
|
|
73
|
+
to: string;
|
|
74
|
+
/** The amount of native tokens to transfer in minimum denomination. */
|
|
75
|
+
amount: string;
|
|
76
|
+
/** The memo or destination tag (supported networks only). */
|
|
77
|
+
memo?: (string | "") | undefined;
|
|
78
|
+
/** The priority that determines the fees paid for the transfer. All EVM compatible networks and Bitcoin support `priority`. Not supported for other networks. It uses the [estimate fees](https://docs.dfns.co/api-reference/networks/estimate-fees) API to calculate the transfer fees. When not specified, defaults to `Standard` priority. */
|
|
79
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
80
|
+
/** Whether to create the destination account on chains that require account creation (e.g., Stellar). Only valid for chains that require the receiver account to exist before transfer. */
|
|
81
|
+
createDestinationAccount?: boolean | undefined;
|
|
82
|
+
/** Optional field for Canton, if true it will create a transfer offer. */
|
|
83
|
+
offer?: boolean | undefined;
|
|
84
|
+
/** Optional field for Canton, especially useful in the context of offers */
|
|
85
|
+
expiresAt?: string | undefined;
|
|
86
|
+
/** Optional Solana-only flag. When `true` the SOL transfer is built as a durable-nonce transaction using one of the wallet's nonce accounts (picked server-side). Use this for offline-signing flows where the construct → broadcast gap may exceed 90 seconds. The wallet's nonce account pool must be pre-populated via `POST /wallets/{id}/transactions` with `kind: CreateSolanaNonceAccounts`. */
|
|
87
|
+
useDurableNonce?: boolean | undefined;
|
|
88
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
89
|
+
externalId?: string | undefined;
|
|
90
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
91
|
+
travelRule?: ({
|
|
92
|
+
kind: "Notabene";
|
|
93
|
+
beneficiaryVASPdid?: string | undefined;
|
|
94
|
+
beneficiaryProof?: {
|
|
95
|
+
[x: string]: any;
|
|
96
|
+
} | undefined;
|
|
97
|
+
originator: {
|
|
98
|
+
[x: string]: any;
|
|
99
|
+
};
|
|
100
|
+
beneficiary: {
|
|
101
|
+
[x: string]: any;
|
|
102
|
+
};
|
|
103
|
+
}) | undefined;
|
|
104
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
105
|
+
feeSponsorId?: string | undefined;
|
|
106
|
+
gasLimit?: string | undefined;
|
|
107
|
+
gasPrice?: string | undefined;
|
|
108
|
+
maxFeePerGas?: string | undefined;
|
|
109
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
kind: "Erc20";
|
|
112
|
+
/** The ERC-20 contract address. */
|
|
113
|
+
contract: string;
|
|
114
|
+
/** The destination address. */
|
|
115
|
+
to: string;
|
|
116
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
117
|
+
amount: string;
|
|
118
|
+
/** The priority that determines the fees paid for the transfer. */
|
|
119
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
120
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
121
|
+
externalId?: string | undefined;
|
|
122
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
123
|
+
travelRule?: ({
|
|
124
|
+
kind: "Notabene";
|
|
125
|
+
beneficiaryVASPdid?: string | undefined;
|
|
126
|
+
beneficiaryProof?: {
|
|
127
|
+
[x: string]: any;
|
|
128
|
+
} | undefined;
|
|
129
|
+
originator: {
|
|
130
|
+
[x: string]: any;
|
|
131
|
+
};
|
|
132
|
+
beneficiary: {
|
|
133
|
+
[x: string]: any;
|
|
134
|
+
};
|
|
135
|
+
}) | undefined;
|
|
136
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
137
|
+
feeSponsorId?: string | undefined;
|
|
138
|
+
gasLimit?: string | undefined;
|
|
139
|
+
gasPrice?: string | undefined;
|
|
140
|
+
maxFeePerGas?: string | undefined;
|
|
141
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
kind: "Aip21";
|
|
144
|
+
/** The asset metadata address. */
|
|
145
|
+
metadata: string;
|
|
146
|
+
/** The destination address. */
|
|
147
|
+
to: string;
|
|
148
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
149
|
+
amount: string;
|
|
150
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
151
|
+
externalId?: string | undefined;
|
|
152
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
153
|
+
travelRule?: ({
|
|
154
|
+
kind: "Notabene";
|
|
155
|
+
beneficiaryVASPdid?: string | undefined;
|
|
156
|
+
beneficiaryProof?: {
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
} | undefined;
|
|
159
|
+
originator: {
|
|
160
|
+
[x: string]: any;
|
|
161
|
+
};
|
|
162
|
+
beneficiary: {
|
|
163
|
+
[x: string]: any;
|
|
164
|
+
};
|
|
165
|
+
}) | undefined;
|
|
166
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
167
|
+
feeSponsorId?: string | undefined;
|
|
168
|
+
} | {
|
|
169
|
+
kind: "Asa";
|
|
170
|
+
/** The token asset id. */
|
|
171
|
+
assetId: string;
|
|
172
|
+
/** The destination address. */
|
|
173
|
+
to: string;
|
|
174
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
175
|
+
amount: string;
|
|
176
|
+
/** The memo or destination tag. */
|
|
177
|
+
memo?: (string | "") | undefined;
|
|
178
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
179
|
+
externalId?: string | undefined;
|
|
180
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
181
|
+
travelRule?: ({
|
|
182
|
+
kind: "Notabene";
|
|
183
|
+
beneficiaryVASPdid?: string | undefined;
|
|
184
|
+
beneficiaryProof?: {
|
|
185
|
+
[x: string]: any;
|
|
186
|
+
} | undefined;
|
|
187
|
+
originator: {
|
|
188
|
+
[x: string]: any;
|
|
189
|
+
};
|
|
190
|
+
beneficiary: {
|
|
191
|
+
[x: string]: any;
|
|
192
|
+
};
|
|
193
|
+
}) | undefined;
|
|
194
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
195
|
+
feeSponsorId?: string | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
kind: "Asset";
|
|
198
|
+
/** The token asset id. */
|
|
199
|
+
assetId: string;
|
|
200
|
+
/** The destination address. */
|
|
201
|
+
to: string;
|
|
202
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
203
|
+
amount: string;
|
|
204
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
205
|
+
externalId?: string | undefined;
|
|
206
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
207
|
+
travelRule?: ({
|
|
208
|
+
kind: "Notabene";
|
|
209
|
+
beneficiaryVASPdid?: string | undefined;
|
|
210
|
+
beneficiaryProof?: {
|
|
211
|
+
[x: string]: any;
|
|
212
|
+
} | undefined;
|
|
213
|
+
originator: {
|
|
214
|
+
[x: string]: any;
|
|
215
|
+
};
|
|
216
|
+
beneficiary: {
|
|
217
|
+
[x: string]: any;
|
|
218
|
+
};
|
|
219
|
+
}) | undefined;
|
|
220
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
221
|
+
feeSponsorId?: string | undefined;
|
|
222
|
+
} | {
|
|
223
|
+
kind: "Cip56";
|
|
224
|
+
/** The instrument admin address. */
|
|
225
|
+
instrumentAdmin: string;
|
|
226
|
+
/** The instrument id. */
|
|
227
|
+
instrumentId: string;
|
|
228
|
+
/** The destination address. */
|
|
229
|
+
to: string;
|
|
230
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
231
|
+
amount: string;
|
|
232
|
+
/** If true it will create a transfer offer. */
|
|
233
|
+
offer?: boolean | undefined;
|
|
234
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
235
|
+
externalId?: string | undefined;
|
|
236
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
237
|
+
travelRule?: ({
|
|
238
|
+
kind: "Notabene";
|
|
239
|
+
beneficiaryVASPdid?: string | undefined;
|
|
240
|
+
beneficiaryProof?: {
|
|
241
|
+
[x: string]: any;
|
|
242
|
+
} | undefined;
|
|
243
|
+
originator: {
|
|
244
|
+
[x: string]: any;
|
|
245
|
+
};
|
|
246
|
+
beneficiary: {
|
|
247
|
+
[x: string]: any;
|
|
248
|
+
};
|
|
249
|
+
}) | undefined;
|
|
250
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
251
|
+
feeSponsorId?: string | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
kind: "Cis2";
|
|
254
|
+
/** The destination address. */
|
|
255
|
+
to: string;
|
|
256
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
257
|
+
amount: string;
|
|
258
|
+
/** The token address following (https://proposals.concordium.com/CIS/cis-2.html#token-address). */
|
|
259
|
+
tokenAddress: string;
|
|
260
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
261
|
+
externalId?: string | undefined;
|
|
262
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
263
|
+
travelRule?: ({
|
|
264
|
+
kind: "Notabene";
|
|
265
|
+
beneficiaryVASPdid?: string | undefined;
|
|
266
|
+
beneficiaryProof?: {
|
|
267
|
+
[x: string]: any;
|
|
268
|
+
} | undefined;
|
|
269
|
+
originator: {
|
|
270
|
+
[x: string]: any;
|
|
271
|
+
};
|
|
272
|
+
beneficiary: {
|
|
273
|
+
[x: string]: any;
|
|
274
|
+
};
|
|
275
|
+
}) | undefined;
|
|
276
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
277
|
+
feeSponsorId?: string | undefined;
|
|
278
|
+
} | {
|
|
279
|
+
kind: "Cis7";
|
|
280
|
+
/** The destination address. */
|
|
281
|
+
to: string;
|
|
282
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
283
|
+
amount: string;
|
|
284
|
+
/** The Cis7 token identifier. */
|
|
285
|
+
tokenId: string;
|
|
286
|
+
/** The memo or destination tag. */
|
|
287
|
+
memo?: (string | "") | undefined;
|
|
288
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
289
|
+
externalId?: string | undefined;
|
|
290
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
291
|
+
travelRule?: ({
|
|
292
|
+
kind: "Notabene";
|
|
293
|
+
beneficiaryVASPdid?: string | undefined;
|
|
294
|
+
beneficiaryProof?: {
|
|
295
|
+
[x: string]: any;
|
|
296
|
+
} | undefined;
|
|
297
|
+
originator: {
|
|
298
|
+
[x: string]: any;
|
|
299
|
+
};
|
|
300
|
+
beneficiary: {
|
|
301
|
+
[x: string]: any;
|
|
302
|
+
};
|
|
303
|
+
}) | undefined;
|
|
304
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
305
|
+
feeSponsorId?: string | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
kind: "Coin";
|
|
308
|
+
/** The coin identifier. */
|
|
309
|
+
coin: string;
|
|
310
|
+
/** The destination address. */
|
|
311
|
+
to: string;
|
|
312
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
313
|
+
amount: string;
|
|
314
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
315
|
+
externalId?: string | undefined;
|
|
316
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
317
|
+
travelRule?: ({
|
|
318
|
+
kind: "Notabene";
|
|
319
|
+
beneficiaryVASPdid?: string | undefined;
|
|
320
|
+
beneficiaryProof?: {
|
|
321
|
+
[x: string]: any;
|
|
322
|
+
} | undefined;
|
|
323
|
+
originator: {
|
|
324
|
+
[x: string]: any;
|
|
325
|
+
};
|
|
326
|
+
beneficiary: {
|
|
327
|
+
[x: string]: any;
|
|
328
|
+
};
|
|
329
|
+
}) | undefined;
|
|
330
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
331
|
+
feeSponsorId?: string | undefined;
|
|
332
|
+
} | {
|
|
333
|
+
kind: "Erc721";
|
|
334
|
+
/** The ERC-721 contract address. */
|
|
335
|
+
contract: string;
|
|
336
|
+
/** The destination address. */
|
|
337
|
+
to: string;
|
|
338
|
+
/** The token to transfer. */
|
|
339
|
+
tokenId: string;
|
|
340
|
+
/** The priority that determines the fees paid for the transfer. */
|
|
341
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
342
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
343
|
+
externalId?: string | undefined;
|
|
344
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
345
|
+
travelRule?: ({
|
|
346
|
+
kind: "Notabene";
|
|
347
|
+
beneficiaryVASPdid?: string | undefined;
|
|
348
|
+
beneficiaryProof?: {
|
|
349
|
+
[x: string]: any;
|
|
350
|
+
} | undefined;
|
|
351
|
+
originator: {
|
|
352
|
+
[x: string]: any;
|
|
353
|
+
};
|
|
354
|
+
beneficiary: {
|
|
355
|
+
[x: string]: any;
|
|
356
|
+
};
|
|
357
|
+
}) | undefined;
|
|
358
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
359
|
+
feeSponsorId?: string | undefined;
|
|
360
|
+
} | {
|
|
361
|
+
kind: "Erc7984";
|
|
362
|
+
/** The ERC-7984 confidential token contract address. */
|
|
363
|
+
contract: string;
|
|
364
|
+
/** The destination address. */
|
|
365
|
+
to: string;
|
|
366
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
367
|
+
amount: string;
|
|
368
|
+
/** The priority that determines the fees paid for the transfer. */
|
|
369
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
370
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
371
|
+
externalId?: string | undefined;
|
|
372
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
373
|
+
travelRule?: ({
|
|
374
|
+
kind: "Notabene";
|
|
375
|
+
beneficiaryVASPdid?: string | undefined;
|
|
376
|
+
beneficiaryProof?: {
|
|
377
|
+
[x: string]: any;
|
|
378
|
+
} | undefined;
|
|
379
|
+
originator: {
|
|
380
|
+
[x: string]: any;
|
|
381
|
+
};
|
|
382
|
+
beneficiary: {
|
|
383
|
+
[x: string]: any;
|
|
384
|
+
};
|
|
385
|
+
}) | undefined;
|
|
386
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
387
|
+
feeSponsorId?: string | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
kind: "Hip17";
|
|
390
|
+
/** The token to transfer. */
|
|
391
|
+
tokenId: string;
|
|
392
|
+
serialNumber: string;
|
|
393
|
+
/** The destination address. */
|
|
394
|
+
to: string;
|
|
395
|
+
/** The memo or destination tag. */
|
|
396
|
+
memo?: (string | "") | undefined;
|
|
397
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
398
|
+
externalId?: string | undefined;
|
|
399
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
400
|
+
travelRule?: ({
|
|
401
|
+
kind: "Notabene";
|
|
402
|
+
beneficiaryVASPdid?: string | undefined;
|
|
403
|
+
beneficiaryProof?: {
|
|
404
|
+
[x: string]: any;
|
|
405
|
+
} | undefined;
|
|
406
|
+
originator: {
|
|
407
|
+
[x: string]: any;
|
|
408
|
+
};
|
|
409
|
+
beneficiary: {
|
|
410
|
+
[x: string]: any;
|
|
411
|
+
};
|
|
412
|
+
}) | undefined;
|
|
413
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
414
|
+
feeSponsorId?: string | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
kind: "Hts";
|
|
417
|
+
/** The token to transfer. */
|
|
418
|
+
tokenId: string;
|
|
419
|
+
/** The destination address. */
|
|
420
|
+
to: string;
|
|
421
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
422
|
+
amount: string;
|
|
423
|
+
/** The memo. */
|
|
424
|
+
memo?: (string | "") | undefined;
|
|
425
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
426
|
+
externalId?: string | undefined;
|
|
427
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
428
|
+
travelRule?: ({
|
|
429
|
+
kind: "Notabene";
|
|
430
|
+
beneficiaryVASPdid?: string | undefined;
|
|
431
|
+
beneficiaryProof?: {
|
|
432
|
+
[x: string]: any;
|
|
433
|
+
} | undefined;
|
|
434
|
+
originator: {
|
|
435
|
+
[x: string]: any;
|
|
436
|
+
};
|
|
437
|
+
beneficiary: {
|
|
438
|
+
[x: string]: any;
|
|
439
|
+
};
|
|
440
|
+
}) | undefined;
|
|
441
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
442
|
+
feeSponsorId?: string | undefined;
|
|
443
|
+
} | {
|
|
444
|
+
kind: "Iou";
|
|
445
|
+
/** The IOU currency code. */
|
|
446
|
+
currency: string;
|
|
447
|
+
/** The IOU issuer address. */
|
|
448
|
+
issuer: string;
|
|
449
|
+
/** The destination address. */
|
|
450
|
+
to: string;
|
|
451
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
452
|
+
amount: string;
|
|
453
|
+
/** The memo or destination tag. */
|
|
454
|
+
memo?: (string | "") | undefined;
|
|
455
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
456
|
+
externalId?: string | undefined;
|
|
457
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
458
|
+
travelRule?: ({
|
|
459
|
+
kind: "Notabene";
|
|
460
|
+
beneficiaryVASPdid?: string | undefined;
|
|
461
|
+
beneficiaryProof?: {
|
|
462
|
+
[x: string]: any;
|
|
463
|
+
} | undefined;
|
|
464
|
+
originator: {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
};
|
|
467
|
+
beneficiary: {
|
|
468
|
+
[x: string]: any;
|
|
469
|
+
};
|
|
470
|
+
}) | undefined;
|
|
471
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
472
|
+
feeSponsorId?: string | undefined;
|
|
473
|
+
} | {
|
|
474
|
+
kind: "Sep41";
|
|
475
|
+
/** The asset issuer address. */
|
|
476
|
+
issuer: string;
|
|
477
|
+
/** The asset code. */
|
|
478
|
+
assetCode: string;
|
|
479
|
+
/** The destination address. */
|
|
480
|
+
to: string;
|
|
481
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
482
|
+
amount: string;
|
|
483
|
+
/** The memo or destination tag. */
|
|
484
|
+
memo?: (string | "") | undefined;
|
|
485
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
486
|
+
externalId?: string | undefined;
|
|
487
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
488
|
+
travelRule?: ({
|
|
489
|
+
kind: "Notabene";
|
|
490
|
+
beneficiaryVASPdid?: string | undefined;
|
|
491
|
+
beneficiaryProof?: {
|
|
492
|
+
[x: string]: any;
|
|
493
|
+
} | undefined;
|
|
494
|
+
originator: {
|
|
495
|
+
[x: string]: any;
|
|
496
|
+
};
|
|
497
|
+
beneficiary: {
|
|
498
|
+
[x: string]: any;
|
|
499
|
+
};
|
|
500
|
+
}) | undefined;
|
|
501
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
502
|
+
feeSponsorId?: string | undefined;
|
|
503
|
+
} | {
|
|
504
|
+
kind: "Snip2";
|
|
505
|
+
/** The SNIP-2 (ERC-20-like) contract address. */
|
|
506
|
+
contract: string;
|
|
507
|
+
/** The destination address. */
|
|
508
|
+
to: string;
|
|
509
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
510
|
+
amount: string;
|
|
511
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
512
|
+
externalId?: string | undefined;
|
|
513
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
514
|
+
travelRule?: ({
|
|
515
|
+
kind: "Notabene";
|
|
516
|
+
beneficiaryVASPdid?: string | undefined;
|
|
517
|
+
beneficiaryProof?: {
|
|
518
|
+
[x: string]: any;
|
|
519
|
+
} | undefined;
|
|
520
|
+
originator: {
|
|
521
|
+
[x: string]: any;
|
|
522
|
+
};
|
|
523
|
+
beneficiary: {
|
|
524
|
+
[x: string]: any;
|
|
525
|
+
};
|
|
526
|
+
}) | undefined;
|
|
527
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
528
|
+
feeSponsorId?: string | undefined;
|
|
529
|
+
} | {
|
|
530
|
+
kind: "Snip3";
|
|
531
|
+
/** The SNIP-3 (ERC-721) contract address. */
|
|
532
|
+
contract: string;
|
|
533
|
+
/** The destination address. */
|
|
534
|
+
to: string;
|
|
535
|
+
/** The token to transfer. */
|
|
536
|
+
tokenId: string;
|
|
537
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
538
|
+
externalId?: string | undefined;
|
|
539
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
540
|
+
travelRule?: ({
|
|
541
|
+
kind: "Notabene";
|
|
542
|
+
beneficiaryVASPdid?: string | undefined;
|
|
543
|
+
beneficiaryProof?: {
|
|
544
|
+
[x: string]: any;
|
|
545
|
+
} | undefined;
|
|
546
|
+
originator: {
|
|
547
|
+
[x: string]: any;
|
|
548
|
+
};
|
|
549
|
+
beneficiary: {
|
|
550
|
+
[x: string]: any;
|
|
551
|
+
};
|
|
552
|
+
}) | undefined;
|
|
553
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
554
|
+
feeSponsorId?: string | undefined;
|
|
555
|
+
} | {
|
|
556
|
+
kind: "Spl" | "Spl2022";
|
|
557
|
+
/** The destination address. */
|
|
558
|
+
to: string;
|
|
559
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
560
|
+
amount: string;
|
|
561
|
+
/** The mint account address. */
|
|
562
|
+
mint: string;
|
|
563
|
+
/** The memo or destination tag. */
|
|
564
|
+
memo?: (string | "") | undefined;
|
|
565
|
+
/** If `true`, pay to create the associated token account for the recipient if it doesn't exist. Defaults to `false`. */
|
|
566
|
+
createDestinationAccount?: boolean | undefined;
|
|
567
|
+
/** Optional. When `true` the SPL transfer is built as a durable-nonce transaction using one of the wallet's nonce accounts (picked server-side). The wallet's nonce account pool must be pre-populated via `POST /wallets/{id}/transactions` with `kind: CreateSolanaNonceAccounts`. */
|
|
568
|
+
useDurableNonce?: boolean | undefined;
|
|
569
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
570
|
+
externalId?: string | undefined;
|
|
571
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
572
|
+
travelRule?: ({
|
|
573
|
+
kind: "Notabene";
|
|
574
|
+
beneficiaryVASPdid?: string | undefined;
|
|
575
|
+
beneficiaryProof?: {
|
|
576
|
+
[x: string]: any;
|
|
577
|
+
} | undefined;
|
|
578
|
+
originator: {
|
|
579
|
+
[x: string]: any;
|
|
580
|
+
};
|
|
581
|
+
beneficiary: {
|
|
582
|
+
[x: string]: any;
|
|
583
|
+
};
|
|
584
|
+
}) | undefined;
|
|
585
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
586
|
+
feeSponsorId?: string | undefined;
|
|
587
|
+
} | {
|
|
588
|
+
kind: "Tep74";
|
|
589
|
+
/** The destination address. */
|
|
590
|
+
to: string;
|
|
591
|
+
/** The Jetton master contract address. */
|
|
592
|
+
master: string;
|
|
593
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
594
|
+
amount: string;
|
|
595
|
+
/** The memo or destination tag. */
|
|
596
|
+
memo?: (string | "") | undefined;
|
|
597
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
598
|
+
externalId?: string | undefined;
|
|
599
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
600
|
+
travelRule?: ({
|
|
601
|
+
kind: "Notabene";
|
|
602
|
+
beneficiaryVASPdid?: string | undefined;
|
|
603
|
+
beneficiaryProof?: {
|
|
604
|
+
[x: string]: any;
|
|
605
|
+
} | undefined;
|
|
606
|
+
originator: {
|
|
607
|
+
[x: string]: any;
|
|
608
|
+
};
|
|
609
|
+
beneficiary: {
|
|
610
|
+
[x: string]: any;
|
|
611
|
+
};
|
|
612
|
+
}) | undefined;
|
|
613
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
614
|
+
feeSponsorId?: string | undefined;
|
|
615
|
+
} | {
|
|
616
|
+
kind: "Trc10";
|
|
617
|
+
/** The token ID. */
|
|
618
|
+
tokenId: string;
|
|
619
|
+
/** The destination address. */
|
|
620
|
+
to: string;
|
|
621
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
622
|
+
amount: string;
|
|
623
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
624
|
+
externalId?: string | undefined;
|
|
625
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
626
|
+
travelRule?: ({
|
|
627
|
+
kind: "Notabene";
|
|
628
|
+
beneficiaryVASPdid?: string | undefined;
|
|
629
|
+
beneficiaryProof?: {
|
|
630
|
+
[x: string]: any;
|
|
631
|
+
} | undefined;
|
|
632
|
+
originator: {
|
|
633
|
+
[x: string]: any;
|
|
634
|
+
};
|
|
635
|
+
beneficiary: {
|
|
636
|
+
[x: string]: any;
|
|
637
|
+
};
|
|
638
|
+
}) | undefined;
|
|
639
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
640
|
+
feeSponsorId?: string | undefined;
|
|
641
|
+
} | {
|
|
642
|
+
kind: "Trc20";
|
|
643
|
+
/** The smart contract address. */
|
|
644
|
+
contract: string;
|
|
645
|
+
/** The destination address. */
|
|
646
|
+
to: string;
|
|
647
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
648
|
+
amount: string;
|
|
649
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
650
|
+
externalId?: string | undefined;
|
|
651
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
652
|
+
travelRule?: ({
|
|
653
|
+
kind: "Notabene";
|
|
654
|
+
beneficiaryVASPdid?: string | undefined;
|
|
655
|
+
beneficiaryProof?: {
|
|
656
|
+
[x: string]: any;
|
|
657
|
+
} | undefined;
|
|
658
|
+
originator: {
|
|
659
|
+
[x: string]: any;
|
|
660
|
+
};
|
|
661
|
+
beneficiary: {
|
|
662
|
+
[x: string]: any;
|
|
663
|
+
};
|
|
664
|
+
}) | undefined;
|
|
665
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
666
|
+
feeSponsorId?: string | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
kind: "Trc721";
|
|
669
|
+
/** The smart contract address. */
|
|
670
|
+
contract: string;
|
|
671
|
+
/** The destination address. */
|
|
672
|
+
to: string;
|
|
673
|
+
/** The token to transfer. */
|
|
674
|
+
tokenId: string;
|
|
675
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
676
|
+
externalId?: string | undefined;
|
|
677
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
678
|
+
travelRule?: ({
|
|
679
|
+
kind: "Notabene";
|
|
680
|
+
beneficiaryVASPdid?: string | undefined;
|
|
681
|
+
beneficiaryProof?: {
|
|
682
|
+
[x: string]: any;
|
|
683
|
+
} | undefined;
|
|
684
|
+
originator: {
|
|
685
|
+
[x: string]: any;
|
|
686
|
+
};
|
|
687
|
+
beneficiary: {
|
|
688
|
+
[x: string]: any;
|
|
689
|
+
};
|
|
690
|
+
}) | undefined;
|
|
691
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
692
|
+
feeSponsorId?: string | undefined;
|
|
693
|
+
} | {
|
|
694
|
+
kind: "Xls33";
|
|
695
|
+
/** The XLS-33 issuance identifier. */
|
|
696
|
+
issuanceId: string;
|
|
697
|
+
/** The destination address. */
|
|
698
|
+
to: string;
|
|
699
|
+
/** The amount of tokens to transfer in minimum denomination. */
|
|
700
|
+
amount: string;
|
|
701
|
+
/** The memo or destination tag. */
|
|
702
|
+
memo?: (string | "") | undefined;
|
|
703
|
+
/** A unique ID from your system. It can be leveraged to be used as an idempotency key. (read more [here](https://docs.dfns.co/api-reference/idempotency)) */
|
|
704
|
+
externalId?: string | undefined;
|
|
705
|
+
/** A travel rule payload to associate with the transfer. (read more [here](https://docs.dfns.co/features/travel-rule)) */
|
|
706
|
+
travelRule?: ({
|
|
707
|
+
kind: "Notabene";
|
|
708
|
+
beneficiaryVASPdid?: string | undefined;
|
|
709
|
+
beneficiaryProof?: {
|
|
710
|
+
[x: string]: any;
|
|
711
|
+
} | undefined;
|
|
712
|
+
originator: {
|
|
713
|
+
[x: string]: any;
|
|
714
|
+
};
|
|
715
|
+
beneficiary: {
|
|
716
|
+
[x: string]: any;
|
|
717
|
+
};
|
|
718
|
+
}) | undefined;
|
|
719
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fees, it might not be available for all blockchains. (read more [here](https://docs.dfns.co/features/fee-sponsors)) */
|
|
720
|
+
feeSponsorId?: string | undefined;
|
|
721
|
+
};
|
|
722
|
+
/** Additional metadata about the transfered asset. */
|
|
723
|
+
metadata: {
|
|
724
|
+
asset: {
|
|
725
|
+
symbol?: string | undefined;
|
|
726
|
+
/** Number of decimals used by the asset, see [this guide](https://docs.dfns.co/guides/developers/displaying-balances) for more details. */
|
|
727
|
+
decimals?: number | undefined;
|
|
728
|
+
/** Whether the asset is verified by DFNS as legitimate. */
|
|
729
|
+
verified?: boolean | undefined;
|
|
730
|
+
/** Corresponding asset price in USD at the time of transfer. */
|
|
731
|
+
quotes?: {
|
|
732
|
+
[x: string]: number;
|
|
733
|
+
} | undefined;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
/** Transfer status.
|
|
737
|
+
|
|
738
|
+
| Status | Definition |
|
|
739
|
+
| --- | --- |
|
|
740
|
+
| `Pending` | The request is pending approval due to a policy applied to the wallet. |
|
|
741
|
+
| `Executing` | The request is approved and is in the process of being executed. note this status is only set for a short time between pending and broadcasted. |
|
|
742
|
+
| `Broadcasted` | The transaction has been successfully written to the mempool. |
|
|
743
|
+
| `Confirmed` | The transaction has been confirmed on-chain by our indexing pipeline. |
|
|
744
|
+
| `Failed` | Indicates either system failure to complete the request or the transaction failed on chain. |
|
|
745
|
+
| `Rejected` | The request has been rejected by a policy approval action. | */
|
|
746
|
+
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
747
|
+
/** The reason for a failed transfer. */
|
|
748
|
+
reason?: string | undefined;
|
|
749
|
+
/** The blockchain transaction hash for this transfer. */
|
|
750
|
+
txHash?: string | undefined;
|
|
751
|
+
/** The fee paid for this transfer in minimum denomination. */
|
|
752
|
+
fee?: string | undefined;
|
|
753
|
+
dateRequested: string;
|
|
754
|
+
datePolicyResolved?: string | undefined;
|
|
755
|
+
dateBroadcasted?: string | undefined;
|
|
756
|
+
dateConfirmed?: string | undefined;
|
|
757
|
+
/** The id of the approval request if this transfer triggered a policy. */
|
|
758
|
+
approvalId?: string | undefined;
|
|
759
|
+
/** The external id provided at transfer creation time. */
|
|
760
|
+
externalId?: string | undefined;
|
|
761
|
+
/** The fee sponsor id used to pay for the transfer fees. */
|
|
762
|
+
feeSponsorId?: string | undefined;
|
|
763
|
+
/** The id of the replacement transaction (cancel or speed-up) issued for this transfer. */
|
|
764
|
+
replacementId?: string | undefined;
|
|
765
|
+
/** Structured representation of the data used to construct the signature (e.g. nonce, gas parameters). Shape is blockchain specific. */
|
|
766
|
+
details?: {
|
|
767
|
+
[x: string]: unknown;
|
|
768
|
+
} | undefined;
|
|
769
|
+
};
|
|
770
|
+
export type CreateVaultTransferRequest = CreateVaultTransferParams & {
|
|
771
|
+
body: CreateVaultTransferBody;
|
|
772
|
+
};
|
|
773
|
+
export type GetVaultParams = {
|
|
774
|
+
/** The vault to retrieve. */
|
|
775
|
+
vaultId: string;
|
|
776
|
+
};
|
|
777
|
+
export type GetVaultResponse = {
|
|
778
|
+
/** Vault id. */
|
|
779
|
+
id: string;
|
|
780
|
+
orgId: string;
|
|
781
|
+
name?: string | undefined;
|
|
782
|
+
tags: string[];
|
|
783
|
+
externalId?: string | undefined;
|
|
784
|
+
dateCreated: string;
|
|
785
|
+
dateUpdated: string;
|
|
786
|
+
/** The vault's addresses. */
|
|
787
|
+
addresses?: {
|
|
788
|
+
walletId: string;
|
|
789
|
+
network: string;
|
|
790
|
+
address: string;
|
|
791
|
+
}[] | undefined;
|
|
792
|
+
};
|
|
793
|
+
export type GetVaultRequest = GetVaultParams;
|
|
794
|
+
export type ListVaultAssetsParams = {
|
|
795
|
+
/** Vault id. */
|
|
796
|
+
vaultId: string;
|
|
797
|
+
};
|
|
798
|
+
export type ListVaultAssetsQuery = {
|
|
799
|
+
showUnverified?: boolean | undefined;
|
|
800
|
+
network?: string | undefined;
|
|
801
|
+
};
|
|
802
|
+
export type ListVaultAssetsResponse = {
|
|
803
|
+
items: {
|
|
804
|
+
kind: string;
|
|
805
|
+
network: string;
|
|
806
|
+
tid: string;
|
|
807
|
+
decimals: number;
|
|
808
|
+
symbol?: string | undefined;
|
|
809
|
+
verified?: boolean | undefined;
|
|
810
|
+
availableBalance: string;
|
|
811
|
+
quarantinedBalance: string;
|
|
812
|
+
lockedBalance: string;
|
|
813
|
+
quotes?: {
|
|
814
|
+
[x: string]: number;
|
|
815
|
+
} | undefined;
|
|
816
|
+
}[];
|
|
817
|
+
/** Vault net worth in fiat, broken down by balance kind plus a total. */
|
|
818
|
+
netWorth: {
|
|
819
|
+
available: {
|
|
820
|
+
[x: string]: number;
|
|
821
|
+
};
|
|
822
|
+
quarantined: {
|
|
823
|
+
[x: string]: number;
|
|
824
|
+
};
|
|
825
|
+
locked: {
|
|
826
|
+
[x: string]: number;
|
|
827
|
+
};
|
|
828
|
+
total: {
|
|
829
|
+
[x: string]: number;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
export type ListVaultAssetsRequest = ListVaultAssetsParams & {
|
|
834
|
+
query?: ListVaultAssetsQuery;
|
|
835
|
+
};
|
|
836
|
+
export type ListVaultBalancesParams = {
|
|
837
|
+
/** Vault id. */
|
|
838
|
+
vaultId: string;
|
|
839
|
+
};
|
|
840
|
+
export type ListVaultBalancesQuery = {
|
|
841
|
+
/** Maximum number of items to return. */
|
|
842
|
+
limit?: number | undefined;
|
|
843
|
+
/** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
|
|
844
|
+
paginationToken?: string | undefined;
|
|
845
|
+
/** Vault balance kind. */
|
|
846
|
+
kind?: ("Available" | "Outgoing" | "Fee" | "Incoming" | "Locked" | "Quarantined") | undefined;
|
|
847
|
+
network?: string | undefined;
|
|
848
|
+
tid?: string | undefined;
|
|
849
|
+
};
|
|
850
|
+
export type ListVaultBalancesResponse = {
|
|
851
|
+
items: {
|
|
852
|
+
id: string;
|
|
853
|
+
/** Vault balance kind. */
|
|
854
|
+
kind: "Available" | "Outgoing" | "Fee" | "Incoming" | "Locked" | "Quarantined";
|
|
855
|
+
network: string;
|
|
856
|
+
tid: string;
|
|
857
|
+
amount: string;
|
|
858
|
+
transferId?: string | undefined;
|
|
859
|
+
quarantineId?: string | undefined;
|
|
860
|
+
}[];
|
|
861
|
+
nextPageToken?: string | undefined;
|
|
862
|
+
};
|
|
863
|
+
export type ListVaultBalancesRequest = ListVaultBalancesParams & {
|
|
864
|
+
query?: ListVaultBalancesQuery;
|
|
865
|
+
};
|
|
866
|
+
export type ListVaultsQuery = {
|
|
867
|
+
/** Maximum number of items to return. */
|
|
868
|
+
limit?: number | undefined;
|
|
869
|
+
/** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
|
|
870
|
+
paginationToken?: string | undefined;
|
|
871
|
+
};
|
|
872
|
+
export type ListVaultsResponse = {
|
|
873
|
+
/** Current page items. */
|
|
874
|
+
items: {
|
|
875
|
+
/** Vault id. */
|
|
876
|
+
id: string;
|
|
877
|
+
orgId: string;
|
|
878
|
+
name?: string | undefined;
|
|
879
|
+
tags: string[];
|
|
880
|
+
externalId?: string | undefined;
|
|
881
|
+
dateCreated: string;
|
|
882
|
+
dateUpdated: string;
|
|
883
|
+
/** The vault's addresses. */
|
|
884
|
+
addresses?: {
|
|
885
|
+
walletId: string;
|
|
886
|
+
network: string;
|
|
887
|
+
address: string;
|
|
888
|
+
}[] | undefined;
|
|
889
|
+
}[];
|
|
890
|
+
/** token to use as `paginationToken` to request the next page. */
|
|
891
|
+
nextPageToken?: string | undefined;
|
|
892
|
+
};
|
|
893
|
+
export type ListVaultsRequest = {
|
|
894
|
+
query?: ListVaultsQuery;
|
|
895
|
+
};
|
|
896
|
+
export type TagVaultBody = {
|
|
897
|
+
tags: string[];
|
|
898
|
+
};
|
|
899
|
+
export type TagVaultParams = {
|
|
900
|
+
/** Vault id. */
|
|
901
|
+
vaultId: string;
|
|
902
|
+
};
|
|
903
|
+
export type TagVaultResponse = {};
|
|
904
|
+
export type TagVaultRequest = TagVaultParams & {
|
|
905
|
+
body: TagVaultBody;
|
|
906
|
+
};
|
|
907
|
+
export type UnquarantineBody = {
|
|
908
|
+
reason?: string | undefined;
|
|
909
|
+
};
|
|
910
|
+
export type UnquarantineParams = {
|
|
911
|
+
/** Vault id. */
|
|
912
|
+
vaultId: string;
|
|
913
|
+
/** Vault quarantine id. */
|
|
914
|
+
quarantineId: string;
|
|
915
|
+
};
|
|
916
|
+
export type UnquarantineResponse = {
|
|
917
|
+
status: "OK";
|
|
918
|
+
};
|
|
919
|
+
export type UnquarantineRequest = UnquarantineParams & {
|
|
920
|
+
body: UnquarantineBody;
|
|
921
|
+
};
|
|
922
|
+
export type UntagVaultBody = {
|
|
923
|
+
tags: string[];
|
|
924
|
+
};
|
|
925
|
+
export type UntagVaultParams = {
|
|
926
|
+
/** Vault id. */
|
|
927
|
+
vaultId: string;
|
|
928
|
+
};
|
|
929
|
+
export type UntagVaultResponse = {};
|
|
930
|
+
export type UntagVaultRequest = UntagVaultParams & {
|
|
931
|
+
body: UntagVaultBody;
|
|
932
|
+
};
|
|
933
|
+
export type UpdateVaultBody = {
|
|
934
|
+
name?: string | undefined;
|
|
935
|
+
externalId?: string | undefined;
|
|
936
|
+
};
|
|
937
|
+
export type UpdateVaultParams = {
|
|
938
|
+
/** Vault id. */
|
|
939
|
+
vaultId: string;
|
|
940
|
+
};
|
|
941
|
+
export type UpdateVaultResponse = {
|
|
942
|
+
/** Vault id. */
|
|
943
|
+
id: string;
|
|
944
|
+
orgId: string;
|
|
945
|
+
name?: string | undefined;
|
|
946
|
+
tags: string[];
|
|
947
|
+
externalId?: string | undefined;
|
|
948
|
+
dateCreated: string;
|
|
949
|
+
dateUpdated: string;
|
|
950
|
+
/** The vault's addresses. */
|
|
951
|
+
addresses?: {
|
|
952
|
+
walletId: string;
|
|
953
|
+
network: string;
|
|
954
|
+
address: string;
|
|
955
|
+
}[] | undefined;
|
|
956
|
+
};
|
|
957
|
+
export type UpdateVaultRequest = UpdateVaultParams & {
|
|
958
|
+
body: UpdateVaultBody;
|
|
959
|
+
};
|