Skip to content

Commit 7524044

Browse files
Merge pull request #425 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 8e47fe8 + ba224f1 commit 7524044

1 file changed

Lines changed: 255 additions & 2 deletions

File tree

api.yaml

Lines changed: 255 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15544,7 +15544,10 @@ paths:
1554415544
post:
1554515545
operationId: org.search.history.create
1554615546
summary: Create search history item
15547-
description: Create a new search history item for reference later
15547+
description: |-
15548+
Create a new search history item for reference later
15549+
15550+
**Requires access token scope:** `user_manage`
1554815551
tags:
1554915552
- Organization Management
1555015553
x-internal: false
@@ -15665,7 +15668,10 @@ paths:
1566515668
delete:
1566615669
operationId: org.search.history.delete
1566715670
summary: Delete a search history item
15668-
description: Delete an existing search history item or all history for a given organization
15671+
description: |-
15672+
Delete an existing search history item or all history for a given organization
15673+
15674+
**Requires access token scope:** `user_manage`
1566915675
tags:
1567015676
- Organization Management
1567115677
x-internal: false
@@ -33259,6 +33265,76 @@ paths:
3325933265
application/json:
3326033266
schema:
3326133267
$ref: '#/components/schemas/PlatformError'
33268+
/api/v2/{coin}/wallet/{walletId}/delegateResources/build:
33269+
post:
33270+
summary: Build bulk resource delegation transactions
33271+
description: |-
33272+
Builds one delegation transaction per entry, collecting per-entry errors
33273+
rather than aborting the batch on first failure.
33274+
operationId: v2.wallet.delegateresources.build
33275+
tags:
33276+
- Wallet
33277+
x-internal: false
33278+
parameters:
33279+
- name: coin
33280+
description: The coin ticker symbol (e.g. 'trx', 'ttrx')
33281+
in: path
33282+
required: true
33283+
schema:
33284+
allOf:
33285+
- $ref: '#/components/schemas/CoinString'
33286+
- name: walletId
33287+
description: The wallet ID
33288+
in: path
33289+
required: true
33290+
schema:
33291+
allOf:
33292+
- $ref: '#/components/schemas/WalletIdString'
33293+
requestBody:
33294+
content:
33295+
application/json:
33296+
schema:
33297+
type: object
33298+
description: |-
33299+
Build Resource Delegations Request Body
33300+
33301+
Request body for building bulk resource delegation transactions.
33302+
Each entry delegates a resource (ENERGY or BANDWIDTH) from the wallet's root address to a receiver address.
33303+
properties:
33304+
delegations:
33305+
type: array
33306+
items:
33307+
type: object
33308+
properties:
33309+
receiverAddress:
33310+
type: string
33311+
description: The address receiving the delegated resource
33312+
amount:
33313+
type: string
33314+
description: Amount of resource to delegate (in sun for TRX)
33315+
resource:
33316+
type: string
33317+
description: Resource type to delegate, e.g. 'ENERGY' or 'BANDWIDTH'
33318+
required:
33319+
- receiverAddress
33320+
- amount
33321+
- resource
33322+
description: Array of resource delegation entries, each specifying a receiver address, amount, and resource type
33323+
required:
33324+
- delegations
33325+
responses:
33326+
'200':
33327+
description: OK
33328+
content:
33329+
application/json:
33330+
schema:
33331+
$ref: '#/components/schemas/BuildDelegationsResponse'
33332+
'400':
33333+
description: Bad Request
33334+
content:
33335+
application/json:
33336+
schema:
33337+
$ref: '#/components/schemas/PlatformError'
3326233338
/api/v2/{coin}/wallet/{walletId}/forwarders/balances:
3326333339
get:
3326433340
summary: List forwarder addresses and balances
@@ -33804,6 +33880,76 @@ paths:
3380433880
application/json:
3380533881
schema:
3380633882
$ref: '#/components/schemas/PlatformError'
33883+
/api/v2/{coin}/wallet/{walletId}/undelegateResources/build:
33884+
post:
33885+
summary: Build bulk resource undelegation transactions
33886+
description: |-
33887+
Builds one undelegation transaction per entry, collecting per-entry errors
33888+
rather than aborting the batch on first failure.
33889+
operationId: v2.wallet.undelegateresources.build
33890+
tags:
33891+
- Wallet
33892+
x-internal: false
33893+
parameters:
33894+
- name: coin
33895+
description: The coin ticker symbol (e.g. 'trx', 'ttrx')
33896+
in: path
33897+
required: true
33898+
schema:
33899+
allOf:
33900+
- $ref: '#/components/schemas/CoinString'
33901+
- name: walletId
33902+
description: The wallet ID
33903+
in: path
33904+
required: true
33905+
schema:
33906+
allOf:
33907+
- $ref: '#/components/schemas/WalletIdString'
33908+
requestBody:
33909+
content:
33910+
application/json:
33911+
schema:
33912+
type: object
33913+
description: |-
33914+
Build Resource Undelegations Request Body
33915+
33916+
Request body for building bulk resource undelegation transactions.
33917+
Each entry undelegates a resource (ENERGY or BANDWIDTH) previously delegated from the wallet's root address.
33918+
properties:
33919+
undelegations:
33920+
type: array
33921+
items:
33922+
type: object
33923+
properties:
33924+
receiverAddress:
33925+
type: string
33926+
description: The address receiving the delegated resource
33927+
amount:
33928+
type: string
33929+
description: Amount of resource to delegate (in sun for TRX)
33930+
resource:
33931+
type: string
33932+
description: Resource type to delegate, e.g. 'ENERGY' or 'BANDWIDTH'
33933+
required:
33934+
- receiverAddress
33935+
- amount
33936+
- resource
33937+
description: Array of resource undelegation entries, each specifying a receiver address, amount, and resource type
33938+
required:
33939+
- undelegations
33940+
responses:
33941+
'200':
33942+
description: OK
33943+
content:
33944+
application/json:
33945+
schema:
33946+
$ref: '#/components/schemas/BuildDelegationsResponse'
33947+
'400':
33948+
description: Bad Request
33949+
content:
33950+
application/json:
33951+
schema:
33952+
$ref: '#/components/schemas/PlatformError'
3380733953
/api/v2/{coin}/wallet/{walletId}/unspents:
3380833954
get:
3380933955
summary: List unspents on a wallet
@@ -35893,6 +36039,7 @@ paths:
3589336039
- holdingsByAddress
3589436040
- userAccess
3589536041
- policies
36042+
- costBasis
3589636043
- organizationHoldings
3589736044
- organizationHoldingsByAddress
3589836045
- organizationTransactions
@@ -36384,6 +36531,33 @@ paths:
3638436531
minLength: 1
3638536532
required:
3638636533
- enterprise
36534+
costBasis:
36535+
type: object
36536+
description: Cost basis report
36537+
properties:
36538+
account:
36539+
type: string
36540+
assets:
36541+
type: array
36542+
items:
36543+
type: string
36544+
minLength: 1
36545+
endDate:
36546+
type: string
36547+
description: Date of the snapshot
36548+
format: date-time
36549+
title: ISO Date String
36550+
enterprise:
36551+
$ref: '#/components/schemas/EnterpriseIdNonEmptyString'
36552+
startDate:
36553+
type: string
36554+
description: Date of the snapshot
36555+
format: date-time
36556+
title: ISO Date String
36557+
required:
36558+
- endDate
36559+
- enterprise
36560+
- startDate
3638736561
required:
3638836562
- type
3638936563
- format
@@ -37589,6 +37763,7 @@ paths:
3758937763
- holdingsByAddress
3759037764
- userAccess
3759137765
- policies
37766+
- costBasis
3759237767
- organizationHoldings
3759337768
- organizationHoldingsByAddress
3759437769
- organizationTransactions
@@ -38078,6 +38253,33 @@ paths:
3807838253
minLength: 1
3807938254
required:
3808038255
- enterprise
38256+
costBasis:
38257+
type: object
38258+
description: Cost basis report
38259+
properties:
38260+
account:
38261+
type: string
38262+
assets:
38263+
type: array
38264+
items:
38265+
type: string
38266+
minLength: 1
38267+
endDate:
38268+
type: string
38269+
description: Date of the snapshot
38270+
format: date-time
38271+
title: ISO Date String
38272+
enterprise:
38273+
$ref: '#/components/schemas/EnterpriseIdNonEmptyString'
38274+
startDate:
38275+
type: string
38276+
description: Date of the snapshot
38277+
format: date-time
38278+
title: ISO Date String
38279+
required:
38280+
- endDate
38281+
- enterprise
38282+
- startDate
3808138283
required:
3808238284
- type
3808338285
- format
@@ -53988,6 +54190,28 @@ components:
5398854190
type: string
5398954191
validatorAddress:
5399054192
type: string
54193+
BuildDelegationsResponse:
54194+
title: BuildDelegationsResponse
54195+
type: object
54196+
properties:
54197+
transactions:
54198+
type: array
54199+
items: {}
54200+
errors:
54201+
type: array
54202+
items:
54203+
type: object
54204+
properties:
54205+
receiverAddress:
54206+
type: string
54207+
message:
54208+
type: string
54209+
required:
54210+
- receiverAddress
54211+
- message
54212+
required:
54213+
- transactions
54214+
- errors
5399154215
BuildParams:
5399254216
type: object
5399354217
properties:
@@ -59804,6 +60028,7 @@ components:
5980460028
- holdingsByAddress
5980560029
- userAccess
5980660030
- policies
60031+
- costBasis
5980760032
EnterpriseStakingTotals:
5980860033
type: object
5980960034
properties:
@@ -75527,6 +75752,33 @@ components:
7552775752
minLength: 1
7552875753
required:
7552975754
- enterprise
75755+
costBasis:
75756+
type: object
75757+
description: Cost basis report
75758+
properties:
75759+
account:
75760+
type: string
75761+
assets:
75762+
type: array
75763+
items:
75764+
type: string
75765+
minLength: 1
75766+
endDate:
75767+
type: string
75768+
description: Date of the snapshot
75769+
format: date-time
75770+
title: ISO Date String
75771+
enterprise:
75772+
$ref: '#/components/schemas/EnterpriseIdNonEmptyString'
75773+
startDate:
75774+
type: string
75775+
description: Date of the snapshot
75776+
format: date-time
75777+
title: ISO Date String
75778+
required:
75779+
- endDate
75780+
- enterprise
75781+
- startDate
7553075782
ReportStatus1:
7553175783
title: ReportStatus
7553275784
type: string
@@ -77557,6 +77809,7 @@ components:
7755777809
- holdingsByAddress
7755877810
- userAccess
7755977811
- policies
77812+
- costBasis
7756077813
- organizationHoldings
7756177814
- organizationHoldingsByAddress
7756277815
- organizationTransactions

0 commit comments

Comments
 (0)