-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcrypto_estimate-withdrawal-fee.yaml
More file actions
57 lines (57 loc) · 1.88 KB
/
crypto_estimate-withdrawal-fee.yaml
File metadata and controls
57 lines (57 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
post:
summary: Estimate crypto withdrawal fee
description: >
Estimate the network and application fees for a cryptocurrency withdrawal from a
crypto internal account to an external blockchain address. Use this to show fee
information to customers before they initiate a withdrawal.
operationId: estimateCryptoWithdrawalFee
tags:
- Cross-Currency Transfers
security:
- BasicAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: ../../components/schemas/crypto/EstimateCryptoWithdrawalFeeRequest.yaml
examples:
estimateUSDCWithdrawal:
summary: Estimate fee for USDC withdrawal on Solana
value:
internalAccountId: InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123
currency: USDC
cryptoNetwork: SOLANA
amount: 1000000
destinationAddress: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU
responses:
'200':
description: Fee estimation returned successfully
content:
application/json:
schema:
$ref: ../../components/schemas/crypto/EstimateCryptoWithdrawalFeeResponse.yaml
'400':
description: Bad request - Invalid parameters
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error400.yaml
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error401.yaml
'404':
description: Internal account not found
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error404.yaml
'500':
description: Internal service error
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error500.yaml