@@ -159,11 +159,11 @@ components:
159159 GetTransactionsItem :
160160 properties :
161161 amount :
162- $ref : ' #/components/schemas/Wei '
162+ $ref : ' #/components/schemas/'
163163 callFee :
164- $ref : ' #/components/schemas/Wei '
164+ $ref : ' #/components/schemas/'
165165 gasFee :
166- $ref : ' #/components/schemas/Wei '
166+ $ref : ' #/components/schemas/'
167167 quoteHash :
168168 type : string
169169 status :
@@ -175,11 +175,11 @@ components:
175175 items :
176176 properties :
177177 amount :
178- $ref : ' #/components/schemas/Wei '
178+ $ref : ' #/components/schemas/'
179179 callFee :
180- $ref : ' #/components/schemas/Wei '
180+ $ref : ' #/components/schemas/'
181181 gasFee :
182- $ref : ' #/components/schemas/Wei '
182+ $ref : ' #/components/schemas/'
183183 quoteHash :
184184 type : string
185185 status :
@@ -574,8 +574,8 @@ components:
574574 ProviderDetail :
575575 properties :
576576 fee :
577- $ref : ' #/components/schemas/'
578577 deprecated : true
578+ $ref : ' #/components/schemas/'
579579 feePercentage :
580580 type : number
581581 fixedFee :
@@ -612,6 +612,29 @@ components:
612612 - pegin
613613 - pegout
614614 type : object
615+ RecommendedOperationDTO :
616+ properties :
617+ estimatedCallFee :
618+ description : Estimated call fee if a quote is created with the recommended
619+ amount
620+ example : " 100000"
621+ estimatedGasFee :
622+ description : Estimated gas fee if a quote is created with the recommended
623+ amount
624+ example : " 100000"
625+ estimatedProductFee :
626+ description : Estimated product fee if a quote is created with the recommended
627+ amount
628+ example : " 100000"
629+ recommendedQuoteValue :
630+ description : Recommended quote value for the input amount
631+ example : " 100000"
632+ required :
633+ - recommendedQuoteValue
634+ - estimatedCallFee
635+ - estimatedGasFee
636+ - estimatedProductFee
637+ type : object
615638 RetainedPeginQuoteDTO :
616639 properties :
617640 callForUserTxHash :
@@ -779,8 +802,6 @@ components:
779802 rbtcLockingCap :
780803 $ref : ' #/components/schemas/'
781804 type : object
782- Wei : {}
783- entities.Wei : {}
784805 pkg.AcceptAuthenticatedQuoteRequest :
785806 properties :
786807 quoteHash :
@@ -853,6 +874,29 @@ components:
853874 required :
854875 - collateral
855876 type : object
877+ pkg.RecommendedOperationDTO :
878+ properties :
879+ estimatedCallFee :
880+ description : Estimated call fee if a quote is created with the recommended
881+ amount
882+ example : " 100000"
883+ estimatedGasFee :
884+ description : Estimated gas fee if a quote is created with the recommended
885+ amount
886+ example : " 100000"
887+ estimatedProductFee :
888+ description : Estimated product fee if a quote is created with the recommended
889+ amount
890+ example : " 100000"
891+ recommendedQuoteValue :
892+ description : Recommended quote value for the input amount
893+ example : " 100000"
894+ required :
895+ - recommendedQuoteValue
896+ - estimatedCallFee
897+ - estimatedGasFee
898+ - estimatedProductFee
899+ type : object
856900 pkg.TrustedAccountRequest :
857901 properties :
858902 address :
@@ -1079,6 +1123,45 @@ paths:
10791123 $ref : ' #/components/schemas/GetPeginQuoteResponse'
10801124 description : " "
10811125 summary : Pegin GetQuote
1126+ /pegin/recommended :
1127+ get :
1128+ description : ' Returns the recommended quote value to create a quote whose total
1129+ payment is the input amount'
1130+ parameters :
1131+ - description : Amount in wei expected to use as total payment for the quote
1132+ in : query
1133+ name : amount
1134+ required : true
1135+ schema :
1136+ description : Amount in wei expected to use as total payment for the quote
1137+ format : string
1138+ type : string
1139+ - description : Destination address for the pegin. Is optional, but if provided,
1140+ it will increase the estimation accuracy.
1141+ in : query
1142+ name : destination_address
1143+ schema :
1144+ description : Destination address for the pegin. Is optional, but if provided,
1145+ it will increase the estimation accuracy.
1146+ format : string
1147+ type : string
1148+ - description : Hex-encoded data payload to include in the pegin transaction.
1149+ Is optional, but if provided, it will increase the estimation accuracy.
1150+ in : query
1151+ name : data
1152+ schema :
1153+ description : Hex-encoded data payload to include in the pegin transaction.
1154+ Is optional, but if provided, it will increase the estimation accuracy.
1155+ format : string
1156+ type : string
1157+ responses :
1158+ " 200 " :
1159+ content :
1160+ application/json :
1161+ schema :
1162+ $ref : ' #/components/schemas/RecommendedOperationDTO'
1163+ description : Recommended operation object
1164+ summary : Recommended pegin
10821165 /pegin/status :
10831166 get :
10841167 description : ' Returns the status of an accepted pegin quote'
@@ -1192,6 +1275,38 @@ paths:
11921275 $ref : ' #/components/schemas/GetPegoutQuoteResponse'
11931276 description : " "
11941277 summary : Pegout GetQuote
1278+ /pegout/recommended :
1279+ get :
1280+ description : ' Returns the recommended quote value to create a quote whose total
1281+ payment is the input amount'
1282+ parameters :
1283+ - description : Amount in wei expected to use as total payment for the quote
1284+ in : query
1285+ name : amount
1286+ required : true
1287+ schema :
1288+ description : Amount in wei expected to use as total payment for the quote
1289+ format : string
1290+ type : string
1291+ - description : ' Destination address type for the pegout. Is optional, but if
1292+ provided, it will increase the estimation accuracy. Must be one of: p2pkh,
1293+ p2sh, p2wpkh, p2wsh, p2tr'
1294+ in : query
1295+ name : destination_type
1296+ schema :
1297+ description : ' Destination address type for the pegout. Is optional, but
1298+ if provided, it will increase the estimation accuracy. Must be one of:
1299+ p2pkh, p2sh, p2wpkh, p2wsh, p2tr'
1300+ format : string
1301+ type : string
1302+ responses :
1303+ " 200 " :
1304+ content :
1305+ application/json :
1306+ schema :
1307+ $ref : ' #/components/schemas/RecommendedOperationDTO'
1308+ description : Recommended operation object
1309+ summary : Recommended pegout
11951310 /pegout/status :
11961311 get :
11971312 description : ' Returns the status of an accepted pegout quote'
0 commit comments