Skip to content

Commit 48356a2

Browse files
Merge pull request #242 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents f1b86f9 + fd132bf commit 48356a2

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

api.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31823,6 +31823,80 @@ paths:
3182331823
application/json:
3182431824
schema:
3182531825
$ref: '#/components/schemas/PlatformError'
31826+
/api/v2/wallet/{walletId}/txrequests/{txRequestId}/coinSpecific:
31827+
put:
31828+
summary: Update CoinSpecific field for Transaction Request For Wallet
31829+
description: Route to update transaction request coinSpecific for wallet
31830+
operationId: v2.wallet.txrequest.coinSpecific.update
31831+
tags:
31832+
- Transaction request
31833+
parameters:
31834+
- name: walletId
31835+
in: path
31836+
required: true
31837+
schema:
31838+
$ref: '#/components/schemas/WalletIdString'
31839+
- name: txRequestId
31840+
in: path
31841+
required: true
31842+
schema:
31843+
$ref: '#/components/schemas/TransactionRequestId'
31844+
requestBody:
31845+
content:
31846+
application/json:
31847+
schema:
31848+
type: object
31849+
properties:
31850+
unsignedCoinSpecific:
31851+
type: object
31852+
description: Can be expanded later to include more coins
31853+
properties:
31854+
coin:
31855+
type: string
31856+
enum:
31857+
- lnbtc
31858+
- tlnbtc
31859+
description: lightning coin
31860+
data:
31861+
allOf:
31862+
- $ref: '#/components/schemas/LightningCoinSpecificUpdateData'
31863+
description: Storing signature for lightning withdraw
31864+
required:
31865+
- coin
31866+
- data
31867+
required:
31868+
- unsignedCoinSpecific
31869+
responses:
31870+
'200':
31871+
description: OK
31872+
content:
31873+
application/json:
31874+
schema:
31875+
$ref: '#/components/schemas/TransactionRequest1'
31876+
'400':
31877+
description: Bad Request
31878+
content:
31879+
application/json:
31880+
schema:
31881+
$ref: '#/components/schemas/PlatformError'
31882+
'401':
31883+
description: Unauthorized
31884+
content:
31885+
application/json:
31886+
schema:
31887+
$ref: '#/components/schemas/PlatformError'
31888+
'403':
31889+
description: Forbidden
31890+
content:
31891+
application/json:
31892+
schema:
31893+
$ref: '#/components/schemas/PlatformError'
31894+
'404':
31895+
description: Not Found
31896+
content:
31897+
application/json:
31898+
schema:
31899+
$ref: '#/components/schemas/PlatformError'
3182631900
/api/v2/wallet/{walletId}/txrequests/{txRequestId}/commit:
3182731901
post:
3182831902
summary: Exchange commitments for EdDSA transactions (lite)
@@ -48490,6 +48564,14 @@ components:
4849048564
description: A lightning coin name.
4849148565
type: string
4849248566
example: lnbtc
48567+
LightningCoinSpecificUpdateData:
48568+
title: LightningCoinSpecificUpdateData
48569+
type: object
48570+
properties:
48571+
signature:
48572+
type: string
48573+
required:
48574+
- signature
4849348575
LightningCoinWallet:
4849448576
title: Lightning Coin Wallet
4849548577
type: object
@@ -59426,6 +59508,8 @@ components:
5942659508
type: string
5942759509
stakingAddress:
5942859510
type: string
59511+
signature:
59512+
type: string
5942959513
- type: object
5943059514
additionalProperties: {}
5943159515
description: Coin specific information.
@@ -61104,6 +61188,8 @@ components:
6110461188
type: string
6110561189
stakingAddress:
6110661190
type: string
61191+
signature:
61192+
type: string
6110761193
- type: object
6110861194
additionalProperties: {}
6110961195
description: Coin specific information.

0 commit comments

Comments
 (0)