Skip to content

Commit bc194ab

Browse files
authored
Merge pull request #287 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 59c7ffe + 39692b7 commit bc194ab

File tree

1 file changed

+243
-1
lines changed

1 file changed

+243
-1
lines changed

api.yaml

Lines changed: 243 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26476,6 +26476,8 @@ paths:
2647626476
- $ref: '#/components/schemas/SuiWalUnStakingRequestPOSTBody'
2647726477
- $ref: '#/components/schemas/TaoStakingRequestPOSTBody'
2647826478
- $ref: '#/components/schemas/TaoUnStakingRequestPOSTBody'
26479+
- $ref: '#/components/schemas/TaoSwitchValidatorRequestPOSTBody'
26480+
- $ref: '#/components/schemas/TaoSwitchNetuidRequestPOSTBody'
2647926481
- $ref: '#/components/schemas/TiaStakingRequestPOSTBody'
2648026482
- $ref: '#/components/schemas/TiaUnStakingRequestPOSTBody'
2648126483
- $ref: '#/components/schemas/TiaClaimRewardsRequestPOSTBody'
@@ -26664,6 +26666,10 @@ paths:
2666426666
$ref: '#/components/examples/TaoStakingRequestPOSTBodyExample'
2666526667
TaoUnStakingRequestPOSTBodyExample:
2666626668
$ref: '#/components/examples/TaoUnStakingRequestPOSTBodyExample'
26669+
TaoSwitchValidatorRequestPOSTBodyExample:
26670+
$ref: '#/components/examples/TaoSwitchValidatorRequestPOSTBodyExample'
26671+
TaoSwitchNetuidRequestPOSTBodyExample:
26672+
$ref: '#/components/examples/TaoSwitchNetuidRequestPOSTBodyExample'
2666726673
TiaStakingRequestPOSTBodyExample:
2666826674
$ref: '#/components/examples/TiaStakingRequestPOSTBodyExample'
2666926675
TiaUnStakingRequestPOSTBodyExample:
@@ -26680,6 +26686,8 @@ paths:
2668026686
$ref: '#/components/examples/TrxStakingRequestPOSTBodyExample'
2668126687
TrxUnStakingRequestPOSTBodyExample:
2668226688
$ref: '#/components/examples/TrxUnStakingRequestPOSTBodyExample'
26689+
VetStakingRequestPOSTBodyExample:
26690+
$ref: '#/components/examples/VetStakingRequestPOSTBodyExample'
2668326691
VetUnStakingRequestPOSTBodyExample:
2668426692
$ref: '#/components/examples/VetUnStakingRequestPOSTBodyExample'
2668526693
WctStakingRequestPOSTBodyExample:
@@ -27763,6 +27771,8 @@ paths:
2776327771
$ref: '#/components/examples/MaticWalletStakingStateAttributesExamples'
2776427772
NearWalletStakingStateAttributesExamples:
2776527773
$ref: '#/components/examples/NearWalletStakingStateAttributesExamples'
27774+
TaoWalletStakingStateAttributesExamples:
27775+
$ref: '#/components/examples/TaoWalletStakingStateAttributesExamples'
2776627776
'400':
2776727777
$ref: '#/components/responses/BadRequestError1'
2776827778
'401':
@@ -42461,6 +42471,8 @@ components:
4246142471
enabled: true
4246242472
switchValidator:
4246342473
enabled: true
42474+
switchNetuid:
42475+
enabled: true
4246442476
page: 1
4246542477
totalPages: 1
4246642478
totalElements: 1
@@ -42469,6 +42481,7 @@ components:
4246942481
value:
4247042482
clientId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
4247142483
amount: '1000'
42484+
netUID: 0
4247242485
type: STAKE
4247342486
TaoStakingRequestWithTransactionsExample:
4247442487
summary: Tao Staking Request Example
@@ -42524,6 +42537,24 @@ components:
4252442537
statusModifiedDate: 2022-01-10T14:32:28.000Z
4252542538
status: NEW
4252642539
amount: '1000000000'
42540+
TaoSwitchNetuidRequestPOSTBodyExample:
42541+
summary: TAO Switch Network UID Request Example
42542+
value:
42543+
clientId: switch-netuid-001
42544+
type: SWITCH_VALIDATORS
42545+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
42546+
netUID: 3
42547+
validator: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
42548+
amount: '1000000000'
42549+
switchNetuid: true
42550+
TaoSwitchValidatorRequestPOSTBodyExample:
42551+
summary: TAO Switch Validator Request Example
42552+
value:
42553+
clientId: switch-validator-001
42554+
type: SWITCH_VALIDATORS
42555+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
42556+
validator: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
42557+
amount: '500000000'
4252742558
TaoUnStakingRequestPOSTBodyExample:
4252842559
summary: Tao UnStaking Request POST Body Example
4252942560
value:
@@ -42592,6 +42623,86 @@ components:
4259242623
statusModifiedDate: 2022-01-10T14:32:28.000Z
4259342624
status: NEW
4259442625
amount: '1012000000'
42626+
TaoWalletStakingStateAttributesExamples:
42627+
summary: Tao Wallet Staking Attributes
42628+
value:
42629+
disclaimer:
42630+
staking:
42631+
info:
42632+
- Rewards compound automatically. There is no warmup or cooldown period so your staked balance will earn rewards immediately.
42633+
minStake: '100000000'
42634+
rewardPercentageRate: '14.92'
42635+
rewardsCompounding: true
42636+
transactionsNeeded: 1
42637+
unstaking:
42638+
info:
42639+
- There is no partial unstaking. Users must unstake all or nothing.
42640+
- There is no bonding period so unstaked funds will be released immediately upon confirmation on chain.
42641+
transactionsNeeded: 1
42642+
permission:
42643+
staking:
42644+
enabled: true
42645+
allowClientToUseOwnValidator: false
42646+
unstaking:
42647+
enabled: true
42648+
allowClientToUseOwnValidator: false
42649+
switchValidator:
42650+
enabled: true
42651+
allowClientToUseOwnValidator: false
42652+
switchNetuid:
42653+
enabled: true
42654+
allowClientToUseOwnValidator: false
42655+
spendable:
42656+
staking:
42657+
fee: '300000'
42658+
max: '16010303'
42659+
min: '100000000'
42660+
multiplier: '1'
42661+
netMax: '15710303'
42662+
netMin: '100000000'
42663+
isStakingDurationNeeded: false,
42664+
minStakeMore: '0'
42665+
fields:
42666+
- name: netUID
42667+
label: Network
42668+
required: false
42669+
type: select
42670+
useValidatorList: false
42671+
readonly: false
42672+
options:
42673+
- label: root
42674+
value: '0'
42675+
unstaking:
42676+
fee: '300000'
42677+
max: '200000000'
42678+
min: '200000000'
42679+
multiplier: '1'
42680+
multipleDelegations: true
42681+
requiresAmount: false
42682+
requiresDelegationId: true,
42683+
requiresDelegationIds: false
42684+
switchValidator:
42685+
fee: '300000'
42686+
max: '16010303'
42687+
min: '100000000'
42688+
multiplier: '1'
42689+
requiresDelegationId: true
42690+
switchNetuid:
42691+
fee: '300000'
42692+
max: '16010303'
42693+
min: '100000000'
42694+
multiplier: '1'
42695+
requiresDelegationId: true
42696+
fields:
42697+
- name: netUID
42698+
label: Network
42699+
required: false
42700+
type: select
42701+
useValidatorList: false
42702+
readonly: false
42703+
options:
42704+
- label: root
42705+
value: '0'
4259542706
TiaClaimRewardsRequestPOSTBodyExample:
4259642707
summary: Example TIA Claim Rewards Request
4259742708
value:
@@ -42894,6 +43005,14 @@ components:
4289443005
statusModifiedDate: '2025-08-15T19:36:15.560401474Z'
4289543006
createdDate: '2025-08-15T19:36:15.560363Z'
4289643007
amount: 3000000
43008+
VetStakingRequestPOSTBodyExample:
43009+
summary: VET Staking Request POST Body Example
43010+
value:
43011+
clientId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
43012+
amount: '10000000000000000000000'
43013+
nftTier: DAWN
43014+
validator: '0xae99cb89767a09d53e589a40cb4016974aba4b94'
43015+
type: STAKE
4289743016
VetUnStakingRequestPOSTBodyExample:
4289843017
summary: VET UnStaking Request POST Body Example
4289943018
value:
@@ -70266,6 +70385,7 @@ components:
7026670385
- $ref: '#/components/schemas/WflrUnstakingRequestEntityProperties'
7026770386
- $ref: '#/components/schemas/SomiStakingRequestEntityProperties'
7026870387
- $ref: '#/components/schemas/StoryStakingRequestEntityProperties'
70388+
- $ref: '#/components/schemas/VetStakingRequestEntityProperties'
7026970389
- $ref: '#/components/schemas/WflrClaimRewardsRequestEntityProperties'
7027070390
required:
7027170391
- id
@@ -72006,9 +72126,11 @@ components:
7200672126
properties:
7200772127
validatorAddress:
7200872128
type: string
72129+
description: The hotkey address of the validator.
7200972130
netUID:
7201072131
type: string
7201172132
format: bigInteger
72133+
description: The network UID (subnet) where this delegation exists. TAO uses different subnets for different purposes.
7201272134
nullable: true
7201372135
TaoStakeIntent:
7201472136
title: Tao Stake Intent
@@ -72075,11 +72197,12 @@ components:
7207572197
type: object
7207672198
properties:
7207772199
netUID:
72078-
description: The net UID for the staking request (0-128)
72200+
description: The network UID (subnet) for the staking request. TAO uses different subnets for different purposes (0-128).
7207972201
type: integer
7208072202
minimum: 0
7208172203
maximum: 128
7208272204
nullable: true
72205+
example: 0
7208372206
TaoStakingTransactionProperties:
7208472207
title: TAO Staking Transaction Properties
7208572208
allOf:
@@ -72090,6 +72213,54 @@ components:
7209072213
type: string
7209172214
validator:
7209272215
type: string
72216+
TaoSwitchNetuidRequestPOSTBody:
72217+
title: TAO Switch Network UID Request
72218+
type: object
72219+
description: |
72220+
Request to switch TAO stake from one subnet (netUID) to another.
72221+
This operation moves your stake to a different subnet, potentially with the same or different validator.
72222+
If validator is not specified, the stake will remain with the same validator in the new subnet.
72223+
required:
72224+
- type
72225+
- delegationId
72226+
- netUID
72227+
properties:
72228+
clientId:
72229+
type: string
72230+
description: Optional client-defined identifier to detect duplicate requests.
72231+
maxLength: 256
72232+
nullable: true
72233+
type:
72234+
type: string
72235+
enum:
72236+
- SWITCH_VALIDATORS
72237+
description: Type of request. Must be SWITCH_VALIDATORS for netuid switching.
72238+
delegationId:
72239+
type: string
72240+
description: The ID of the existing delegation to switch from.
72241+
format: uuid
72242+
example: 123e4567-e89b-12d3-a456-426614174000
72243+
validator:
72244+
type: string
72245+
description: Optional hotkey address of the validator in the new subnet. If not provided, uses the same validator.
72246+
example: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty
72247+
nullable: true
72248+
netUID:
72249+
type: integer
72250+
description: The destination network UID (subnet) to switch to.
72251+
minimum: 0
72252+
maximum: 128
72253+
example: 1
72254+
amount:
72255+
type: string
72256+
description: The amount to switch in base units (RAO). If not specified, the entire delegation will be switched.
72257+
example: '1000000000'
72258+
nullable: true
72259+
switchNetuid:
72260+
type: boolean
72261+
description: Must be set to true to indicate this is a netUID switch operation.
72262+
default: true
72263+
example: true
7209372264
TaoSwitchValidatorIntent:
7209472265
title: Tao Switch Validator Intent
7209572266
allOf:
@@ -72127,6 +72298,41 @@ components:
7212772298
destinationNetuid:
7212872299
type: string
7212972300
description: TAO-specific destination network UID.
72301+
TaoSwitchValidatorRequestPOSTBody:
72302+
title: TAO Switch Validator Request
72303+
type: object
72304+
description: |
72305+
Request to switch TAO stake from one validator to another within the same subnet.
72306+
This operation moves your existing stake to a different validator without unstaking.
72307+
required:
72308+
- type
72309+
- delegationId
72310+
- validator
72311+
properties:
72312+
clientId:
72313+
type: string
72314+
description: Optional client-defined identifier to detect duplicate requests.
72315+
maxLength: 256
72316+
nullable: true
72317+
type:
72318+
type: string
72319+
enum:
72320+
- SWITCH_VALIDATORS
72321+
description: Type of request. Must be SWITCH_VALIDATORS for validator switching.
72322+
delegationId:
72323+
type: string
72324+
description: The ID of the existing delegation to switch from.
72325+
format: uuid
72326+
example: 123e4567-e89b-12d3-a456-426614174000
72327+
validator:
72328+
type: string
72329+
description: The hotkey address of the new validator to switch to.
72330+
example: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty
72331+
amount:
72332+
type: string
72333+
description: The amount to switch in base units (RAO). If not specified, the entire delegation will be switched.
72334+
example: '1000000000'
72335+
nullable: true
7213072336
TaoSwitchValidatorTransactionProperties:
7213172337
title: TAO Switch Validator Transaction Properties
7213272338
allOf:
@@ -72135,14 +72341,19 @@ components:
7213572341
properties:
7213672342
amount:
7213772343
type: string
72344+
description: The amount being switched in base units (RAO).
7213872345
validatorAddress:
7213972346
type: string
72347+
description: The hotkey address of the origin validator.
7214072348
destValidatorAddress:
7214172349
type: string
72350+
description: The hotkey address of the destination validator.
7214272351
originNetuid:
7214372352
type: string
72353+
description: The network UID (subnet) where the stake is currently located.
7214472354
destinationNetuid:
7214572355
type: string
72356+
description: The network UID (subnet) where the stake will be moved to.
7214672357
TaoUnStakingRequestPOSTBody:
7214772358
title: TAO unstake
7214872359
allOf:
@@ -80537,10 +80748,38 @@ components:
8053780748
- amount
8053880749
- stakingContractAddress
8053980750
- $ref: '#/components/schemas/StakeIntent'
80751+
VetStakingRequestEntityProperties:
80752+
title: VET staking request entity properties
80753+
allOf:
80754+
- $ref: '#/components/schemas/StakingRequestEntityProperties'
80755+
- type: object
80756+
properties:
80757+
nftTier:
80758+
type: string
80759+
description: The NFT tier selected for staking (e.g., DAWN, LIGHTNING, FLASH).
80760+
validatorAddress:
80761+
type: string
80762+
nullable: true
80763+
description: The validator address to delegate to.
80764+
required:
80765+
- nftTier
8054080766
VetStakingRequestPOSTBody:
8054180767
title: VET stake
8054280768
allOf:
8054380769
- $ref: '#/components/schemas/StakingRequestPOSTBody'
80770+
- type: object
80771+
properties:
80772+
nftTier:
80773+
description: The NFT tier to stake for VET PoS. Amount will be auto-populated based on the selected tier. Options are dynamically populated from the wallet attributes endpoint based on user balance.
80774+
type: string
80775+
example: DAWN
80776+
validator:
80777+
description: The validator address to delegate the NFT to.
80778+
type: string
80779+
example: '0xae99cb89767a09d53e589a40cb4016974aba4b94'
80780+
required:
80781+
- nftTier
80782+
- validator
8054480783
type: object
8054580784
VetStakingTransactionProperties:
8054680785
title: VET Staking Transaction Properties
@@ -81989,6 +82228,9 @@ components:
8198982228
skipAddressValidation:
8199082229
description: Boolean flag to control whether to perform validator address validation or not.
8199182230
type: boolean
82231+
showValidatorAddress:
82232+
description: Boolean flag to control whether to display the validator address in the UI even when skipAddressValidation is true.
82233+
type: boolean
8199282234
allowPartialUnstake:
8199382235
description: True if the wallet allows partial unstaking.
8199482236
type: boolean

0 commit comments

Comments
 (0)