Skip to content

Commit 3d8f5e6

Browse files
Merge pull request #91 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents bec9cab + eb184a2 commit 3d8f5e6

File tree

1 file changed

+218
-0
lines changed

1 file changed

+218
-0
lines changed

api.yaml

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20475,6 +20475,8 @@ paths:
2047520475
- $ref: '#/components/schemas/NearUnStakingRequestPOSTBody'
2047620476
- $ref: '#/components/schemas/SolStakingRequestPOSTBody'
2047720477
- $ref: '#/components/schemas/SolUnStakingRequestPOSTBody'
20478+
- $ref: '#/components/schemas/TaoStakingRequestPOSTBody'
20479+
- $ref: '#/components/schemas/TaoUnStakingRequestPOSTBody'
2047820480
examples:
2047920481
AvaxPStakingRequestPOSTBodyExample:
2048020482
$ref: '#/components/examples/AvaxPStakingRequestPOSTBodyExample'
@@ -20496,6 +20498,10 @@ paths:
2049620498
$ref: '#/components/examples/SolStakingRequestPOSTBodyExample'
2049720499
SolUnStakingRequestPOSTBodyExample:
2049820500
$ref: '#/components/examples/SolUnStakingRequestPOSTBodyExample'
20501+
TaoStakingRequestPOSTBodyExample:
20502+
$ref: '#/components/examples/TaoStakingRequestPOSTBodyExample'
20503+
TaoUnStakingRequestPOSTBodyExample:
20504+
$ref: '#/components/examples/TaoUnStakingRequestPOSTBodyExample'
2049920505
responses:
2050020506
'202':
2050120507
description: Successful Staking Request Accepted and Needs Approval
@@ -20511,6 +20517,7 @@ paths:
2051120517
- $ref: '#/components/schemas/CosmosLikeStakingRequest'
2051220518
- $ref: '#/components/schemas/AtomStakingRequest'
2051320519
- $ref: '#/components/schemas/SolStakingRequest'
20520+
- $ref: '#/components/schemas/TaoStakingRequest'
2051420521
examples:
2051520522
AvaxPStakingRequestWithoutDelegationsExample:
2051620523
$ref: '#/components/examples/AvaxPStakingRequestWithoutDelegationsExample'
@@ -20528,6 +20535,10 @@ paths:
2052820535
$ref: '#/components/examples/SolStakingRequestWithoutDelegationsExample'
2052920536
SolUnStakingRequestWithoutDelegationsExample:
2053020537
$ref: '#/components/examples/SolUnStakingRequestWithoutDelegationsExample'
20538+
TaoStakingRequestWithoutDelegationsExample:
20539+
$ref: '#/components/examples/TaoStakingRequestWithoutDelegationsExample'
20540+
TaoUnStakingRequestWithoutDelegationsExample:
20541+
$ref: '#/components/examples/TaoUnStakingRequestWithoutDelegationsExample'
2053120542
DotStakingRequestWithoutDelegationsExample:
2053220543
$ref: '#/components/examples/DotStakingRequestWithoutDelegationsExample'
2053320544
DotUnStakingRequestWithoutDelegationsExample:
@@ -20848,6 +20859,7 @@ paths:
2084820859
- $ref: '#/components/schemas/MaticStakingRequest'
2084920860
- $ref: '#/components/schemas/NearStakingRequest'
2085020861
- $ref: '#/components/schemas/SolStakingRequest'
20862+
- $ref: '#/components/schemas/TaoStakingRequest'
2085120863
examples:
2085220864
AvaxPStakingRequestWithoutDelegationsExample:
2085320865
$ref: '#/components/examples/AvaxPStakingRequestWithTransactionsExample'
@@ -20865,6 +20877,10 @@ paths:
2086520877
$ref: '#/components/examples/SolStakingRequestWithTransactionsExample'
2086620878
SolUnStakingRequestWithoutDelegationsExample:
2086720879
$ref: '#/components/examples/SolUnStakingRequestWithTransactionsExample'
20880+
TaoStakingRequestWithoutDelegationsExample:
20881+
$ref: '#/components/examples/TaoStakingRequestWithTransactionsExample'
20882+
TaoUnStakingRequestWithoutDelegationsExample:
20883+
$ref: '#/components/examples/TaoUnStakingRequestWithTransactionsExample'
2086820884
DotStakingRequestExample:
2086920885
$ref: '#/components/examples/DotStakingRequestWithTransactionsExample'
2087020886
DotUnStakingRequestWithoutDelegationsExample:
@@ -21339,6 +21355,8 @@ paths:
2133921355
$ref: '#/components/examples/NearDelegationResultsExample'
2134021356
SolDelegationResultsExample:
2134121357
$ref: '#/components/examples/SolDelegationResultsExample'
21358+
TaoDelegationResultsExample:
21359+
$ref: '#/components/examples/TaoDelegationResultsExample'
2134221360
'400':
2134321361
description: Bad Request
2134421362
content:
@@ -30905,6 +30923,154 @@ components:
3090530923
apy: '9.999'
3090630924
commission: '0.999'
3090730925
coin: tsui
30926+
TaoDelegationResultsExample:
30927+
summary: Tao Delegation Results Example
30928+
value:
30929+
delegations:
30930+
- id: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
30931+
delegationAddress: 0x5a6406c9710f588ca733360bfa8033d0ef9ecdy5
30932+
withdrawalAddress: '0x5a6406c9710f588ca733360bfa8033d0ef9ecd7c'
30933+
delegated: '0'
30934+
coin: tao
30935+
walletId: 63110fc78b108e00071df2d3c3879dd0
30936+
status: PENDING
30937+
rewards: '0'
30938+
lockedRewards: '0'
30939+
pendingUnstake: '0'
30940+
pendingStake: '1000'
30941+
apy: '6.5100'
30942+
unstakeable: false
30943+
page: 1
30944+
totalPages: 1
30945+
totalElements: 1
30946+
TaoStakingRequestPOSTBodyExample:
30947+
summary: Tao Staking Request POST Body Example
30948+
value:
30949+
clientId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
30950+
amount: '1000'
30951+
type: STAKE
30952+
TaoStakingRequestWithTransactionsExample:
30953+
summary: Tao Staking Request Example
30954+
value:
30955+
id: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
30956+
clientId: f054adbc-26a3-4acd-8a9d-726a05bca0dr
30957+
requestUserId: 6092e75c451052000636831deb797bd1
30958+
enterpriseId: 1032e75c451052000436831deb797af1
30959+
walletId: 2032e75g451052000636831abd797bd3
30960+
withdrawalAddress: 5EKXEL1PnSxvBennEDin56yj5KgmcX3AW27sr1uqm9tBmKpn
30961+
walletType: custodial
30962+
type: STAKE
30963+
coin: tao
30964+
createdDate: 2022-01-10T14:32:28.000Z
30965+
statusModifiedDate: 2022-01-10T14:32:28.000Z
30966+
status: NEW
30967+
delegations:
30968+
- id: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
30969+
delegationAddress: string
30970+
withdrawalAddress: 5EKXEL1PnSxvBennEDin56yj5KgmcX3AW27sr1uqm9tBmKpn
30971+
delegated: '1000000000'
30972+
status: ACTIVE
30973+
rewards: '0'
30974+
lockedRewards: '0'
30975+
pendingUnstake: '0'
30976+
pendingStake: '0'
30977+
apy: '8.3'
30978+
unstakingFee: '1000000'
30979+
unstakingMin: '0'
30980+
transactions:
30981+
- id: i0500adbc-55b43-5tta-9a9d-726a05bca0op
30982+
stakingRequestId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
30983+
createdDate: 2022-01-10T14:32:28.000Z
30984+
statusModifiedDate: 2022-01-10T14:32:28.000Z
30985+
status: CONFIRMED
30986+
amount: '1000000000'
30987+
transactionType: delegate
30988+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
30989+
amount: '1000000000'
30990+
TaoStakingRequestWithoutDelegationsExample:
30991+
summary: Tao Staking Request Example
30992+
value:
30993+
id: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
30994+
clientId: f054adbc-26a3-4acd-8a9d-726a05bca0dr
30995+
requestUserId: 6092e75c451052000636831deb797bd1
30996+
enterpriseId: 1032e75c451052000436831deb797af1
30997+
walletId: 2032e75g451052000636831abd797bd3
30998+
withdrawalAddress: 3Lwg4hE19Kg4BdUkuDh4v8xXoyoRQkbDMM6wX7zjQP6i
30999+
walletType: custodial
31000+
type: STAKE
31001+
coin: tao
31002+
createdDate: 2022-01-10T14:32:28.000Z
31003+
statusModifiedDate: 2022-01-10T14:32:28.000Z
31004+
status: NEW
31005+
amount: '1000000000'
31006+
TaoUnStakingRequestPOSTBodyExample:
31007+
summary: Tao UnStaking Request POST Body Example
31008+
value:
31009+
clientId: d055adbc-66a3-4ccd-9a9d-726a05bca0cf
31010+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
31011+
type: UNSTAKE
31012+
TaoUnStakingRequestWithTransactionsExample:
31013+
summary: Tao UnStaking Request Example
31014+
value:
31015+
id: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
31016+
clientId: f054adbc-26a3-4acd-8a9d-726a05bca0dr
31017+
requestUserId: 6092e75c451052000636831deb797bd1
31018+
enterpriseId: 1032e75c451052000436831deb797af1
31019+
walletId: 2032e75g451052000636831abd797bd3
31020+
withdrawalAddress: 5EKXEL1PnSxvBennEDin56yj5KgmcX3AW27sr1uqm9tBmKpn
31021+
walletType: custodial
31022+
type: UNSTAKE
31023+
coin: tao
31024+
createdDate: 2022-01-10T14:32:28.000Z
31025+
statusModifiedDate: 2022-01-10T14:32:28.000Z
31026+
status: NEW
31027+
delegations:
31028+
- id: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
31029+
delegationAddress: string
31030+
withdrawalAddress: 5EKXEL1PnSxvBennEDin56yj5KgmcX3AW27sr1uqm9tBmKpn
31031+
delegated: '1012000000'
31032+
status: ACTIVE
31033+
rewards: '12000000'
31034+
lockedRewards: '0'
31035+
pendingUnstake: '1012000000'
31036+
pendingStake: '0'
31037+
apy: '8.3'
31038+
unstakingFee: '1000000'
31039+
unstakingMin: '0'
31040+
transactions:
31041+
- id: i0500adbc-55b43-5tta-9a9d-726a05bca0op
31042+
stakingRequestId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
31043+
createdDate: 2022-01-10T14:32:28.000Z
31044+
statusModifiedDate: 2022-01-10T14:32:28.000Z
31045+
status: READY
31046+
amount: '1012'
31047+
transactionType: undelegate
31048+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
31049+
- id: p0500adbc-55b43-5tta-9a9d-726a05bca0dr
31050+
stakingRequestId: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
31051+
createdDate: 2022-01-10T14:32:28.000Z
31052+
statusModifiedDate: 2022-01-10T14:32:28.000Z
31053+
status: WAITING
31054+
amount: '1012000000'
31055+
transactionType: withdraw_undelegated
31056+
delegationId: e0225adbc-66a3-4ccd-9a9d-726a05bca0cf
31057+
amount: '1012000000'
31058+
TaoUnStakingRequestWithoutDelegationsExample:
31059+
summary: Tao UnStaking Request Example
31060+
value:
31061+
id: e055adbc-66a3-4ccd-9a9d-726a05bca0cf
31062+
clientId: f054adbc-26a3-4acd-8a9d-726a05bca0dr
31063+
requestUserId: 6092e75c451052000636831deb797bd1
31064+
enterpriseId: 1032e75c451052000436831deb797af1
31065+
walletId: 2032e75g451052000636831abd797bd3
31066+
withdrawalAddress: 3Lwg4hE19Kg4BdUkuDh4v8xXoyoRQkbDMM6wX7zjQP6i
31067+
walletType: custodial
31068+
type: UNSTAKE
31069+
coin: tao
31070+
createdDate: 2022-01-10T14:32:28.000Z
31071+
statusModifiedDate: 2022-01-10T14:32:28.000Z
31072+
status: NEW
31073+
amount: '1012000000'
3090831074
TouchpointConditionsExample:
3090931075
summary: Touchpoint Conditions
3091031076
description: A successful response with 5 Touchpoint Conditions.
@@ -49280,6 +49446,9 @@ components:
4928049446
min:
4928149447
description: The minimum spendable amount.
4928249448
type: string
49449+
multiplier:
49450+
description: The multiplier amount to be staked. Default to 1, but for coins like where the amount to stake is multipler of 32 ETH, this is 32 in base unit, to allow validation.
49451+
type: string
4928349452
fee:
4928449453
description: The blockchain fee to submit the transactions needed to stake.
4928549454
type: string
@@ -49667,6 +49836,52 @@ components:
4966749836
type: string
4966849837
required:
4966949838
- tokenName
49839+
TaoStakingRequest:
49840+
title: TAO
49841+
allOf:
49842+
- $ref: '#/components/schemas/StakingRequest'
49843+
type: object
49844+
properties:
49845+
delegations:
49846+
type: array
49847+
minItems: 1
49848+
maxItems: 1
49849+
items:
49850+
$ref: '#/components/schemas/SolStakingDelegation'
49851+
transactions:
49852+
type: array
49853+
minItems: 1
49854+
maxItems: 500
49855+
items:
49856+
$ref: '#/components/schemas/SolStakingTransaction'
49857+
amount:
49858+
description: Amount to stake in base units.
49859+
type: string
49860+
TaoStakingRequestPOSTBody:
49861+
title: TAO stake
49862+
allOf:
49863+
- $ref: '#/components/schemas/StakingRequestPOSTBody'
49864+
type: object
49865+
properties:
49866+
validator:
49867+
description: The validator to delegate to
49868+
type: string
49869+
example: 5FCPTnjevGqAuTttetBy4a24Ej3pH9fiQ8fmvP1ZkrVsLUoT
49870+
TaoUnStakingRequestPOSTBody:
49871+
title: TAO unstake
49872+
allOf:
49873+
- $ref: '#/components/schemas/UnStakingRequestPOSTBody'
49874+
type: object
49875+
properties:
49876+
type:
49877+
description: Staking Request type = 'UNSTAKE'.
49878+
type: string
49879+
example: UNSTAKE
49880+
delegationId:
49881+
description: The delegation ID representing the delegation to unstake.
49882+
type: string
49883+
required:
49884+
- type
4967049885
TestcoinAddress:
4967149886
title: Testcoin Address
4967249887
type: object
@@ -52303,6 +52518,9 @@ components:
5230352518
min:
5230452519
description: The minimum spendable amount.
5230552520
type: string
52521+
multiplier:
52522+
description: The multiplier amount to be staked. Default to 1, but for coins like where the amount to stake is multipler of 32 ETH, this is 32 in base unit, to allow validation.
52523+
type: string
5230652524
fee:
5230752525
description: The blockchain fee to submit the transactions needed to unstake.
5230852526
type: string

0 commit comments

Comments
 (0)