Skip to content

Commit 5111a39

Browse files
Merge pull request #48 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 06960db + 8cc361b commit 5111a39

File tree

1 file changed

+57
-65
lines changed

1 file changed

+57
-65
lines changed

api.yaml

Lines changed: 57 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -22298,7 +22298,7 @@ paths:
2229822298
content:
2229922299
application/json:
2230022300
schema:
22301-
$ref: '#/components/schemas/WalletAddress'
22301+
$ref: '#/components/schemas/WalletAddressUnion'
2230222302
'400':
2230322303
description: Bad Request
2230422304
content:
@@ -22492,7 +22492,7 @@ paths:
2249222492
content:
2249322493
application/json:
2249422494
schema:
22495-
$ref: '#/components/schemas/WalletAddress'
22495+
$ref: '#/components/schemas/WalletAddressUnion'
2249622496
'400':
2249722497
description: Bad Request
2249822498
content:
@@ -33009,18 +33009,27 @@ components:
3300933009
- enterpriseInviteRequest
3301033010
WalletAddress:
3301133011
title: WalletAddress
33012+
allOf:
33013+
- type: object
33014+
properties:
33015+
coin:
33016+
$ref: '#/components/schemas/CoinString'
33017+
wallet:
33018+
type: string
33019+
chain:
33020+
$ref: '#/components/schemas/AddressChain'
33021+
index:
33022+
type: number
33023+
required:
33024+
- coin
33025+
- wallet
33026+
- chain
33027+
- index
33028+
- $ref: '#/components/schemas/BaseWalletAddress'
33029+
BaseWalletAddress:
33030+
title: BaseWalletAddress
3301233031
type: object
3301333032
properties:
33014-
chain:
33015-
allOf:
33016-
- $ref: '#/components/schemas/AddressChain'
33017-
example: '1'
33018-
coin:
33019-
$ref: '#/components/schemas/CoinString'
33020-
index:
33021-
type: number
33022-
wallet:
33023-
type: string
3302433033
id:
3302533034
type: string
3302633035
description: Platform public ID for an address
@@ -33052,11 +33061,6 @@ components:
3305233061
needsConsolidation:
3305333062
type: boolean
3305433063
tokenConsolidationState: {}
33055-
required:
33056-
- chain
33057-
- coin
33058-
- index
33059-
- wallet
3306033064
AddressLabelString:
3306133065
title: AddressLabelString
3306233066
type: string
@@ -37640,6 +37644,7 @@ components:
3764037644
- BitGo Singapore
3764137645
- BitGo Europe ApS
3764237646
- BitGo Mena Fze
37647+
- BitGo Custody MENA FZE
3764337648
BuildParams:
3764437649
type: object
3764537650
properties:
@@ -48130,6 +48135,24 @@ components:
4813048135
- WITNESS_SCRIPT
4813148136
- ETH_CREATE
4813248137
- ETH_CREATE2
48138+
WalletAddressUnion:
48139+
title: WalletAddressUnion
48140+
oneOf:
48141+
- $ref: '#/components/schemas/WalletAddress'
48142+
- $ref: '#/components/schemas/LightningWalletAddress'
48143+
LightningWalletAddress:
48144+
title: LightningWalletAddress
48145+
allOf:
48146+
- type: object
48147+
properties:
48148+
coin:
48149+
$ref: '#/components/schemas/CoinString'
48150+
wallet:
48151+
type: string
48152+
required:
48153+
- coin
48154+
- wallet
48155+
- $ref: '#/components/schemas/BaseWalletAddress'
4813348156
AddressWithBalanceQueryResult:
4813448157
title: AddressWithBalanceQueryResult
4813548158
type: object
@@ -48184,54 +48207,23 @@ components:
4818448207
addresses:
4818548208
type: array
4818648209
items:
48187-
type: object
48188-
properties:
48189-
address:
48190-
$ref: '#/components/schemas/AddressString'
48191-
balance:
48192-
$ref: '#/components/schemas/TrimmedBalance'
48193-
chain:
48194-
allOf:
48195-
- $ref: '#/components/schemas/AddressChain'
48196-
example: '1'
48197-
coin:
48198-
$ref: '#/components/schemas/CoinString'
48199-
coinSpecific:
48200-
allOf:
48201-
- $ref: '#/components/schemas/AddressSubdocument'
48202-
description: Properties specific to certain coin types
48203-
id:
48204-
type: string
48205-
description: Platform public ID for an address
48206-
example: 59cd72485007a239fb00282ed480da1f
48207-
pattern: ^[0-9a-f]{32}$
48208-
index:
48209-
type: number
48210-
label:
48211-
$ref: '#/components/schemas/AddressLabelString'
48212-
lastConsolidatedTime:
48213-
type: string
48214-
format: date
48215-
title: Date String
48216-
lastNonce:
48217-
type: number
48218-
default: -1
48219-
needsConsolidation:
48220-
type: boolean
48221-
proof:
48222-
type: string
48223-
signature:
48224-
type: string
48225-
token:
48226-
type: string
48227-
tokenConsolidationState: {}
48228-
wallet:
48229-
type: string
48230-
required:
48231-
- chain
48232-
- coin
48233-
- index
48234-
- wallet
48210+
allOf:
48211+
- type: object
48212+
properties:
48213+
chain:
48214+
$ref: '#/components/schemas/AddressChain'
48215+
coin:
48216+
$ref: '#/components/schemas/CoinString'
48217+
index:
48218+
type: number
48219+
wallet:
48220+
type: string
48221+
required:
48222+
- chain
48223+
- coin
48224+
- index
48225+
- wallet
48226+
- $ref: '#/components/schemas/BaseWalletAddress'
4823548227
nextBatchPrevId:
4823648228
type: string
4823748229
description: When a result set is truncated, this field returns the id of the last object in the previous batch. To get the next batch of results, pass this value via the 'prevId' query parameter.

0 commit comments

Comments
 (0)