Skip to content

Commit 76fe0e8

Browse files
Merge pull request #419 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents ac1bba1 + 3e9fe35 commit 76fe0e8

2 files changed

Lines changed: 151 additions & 1 deletion

File tree

api.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64919,6 +64919,8 @@ components:
6491964919
- deactivate
6492064920
- customTx
6492164921
- closeAssociatedTokenAccount
64922+
- delegateResource
64923+
- undelegateResource
6492264924
IntentType11:
6492364925
title: IntentType1
6492464926
type: string
@@ -81899,6 +81901,8 @@ components:
8189981901
- $ref: '#/components/schemas/SolStakeIntent1'
8190081902
- $ref: '#/components/schemas/SolUnstakeIntent1'
8190181903
- $ref: '#/components/schemas/TransferTokenIntent1'
81904+
- $ref: '#/components/schemas/TrxDelegateResourceIntent1'
81905+
- $ref: '#/components/schemas/TrxUndelegateResourceIntent1'
8190281906
- $ref: '#/components/schemas/UnstakeIntent2'
8190381907
- $ref: '#/components/schemas/WalletRecoveryIntent1'
8190481908
- $ref: '#/components/schemas/WithdrawIntent2'
@@ -84102,6 +84106,42 @@ components:
8410284106
- resource
8410384107
- $ref: '#/components/schemas/BaseStakeIntent'
8410484108
- $ref: '#/components/schemas/BaseIntentWithAmount'
84109+
TrxDelegateResourceIntent1:
84110+
title: TRX Delegate Resource Intent
84111+
description: |
84112+
Delegates TRON ENERGY or BANDWIDTH from the wallet root address to a receiver address.
84113+
For TRX (`trx`, `ttrx`) MPC (TSS) wallets only — use with [Create transaction request](/reference/v2wallettxrequestcreate).
84114+
Minimum delegation amount is 1 TRX (1,000,000 sun).
84115+
allOf:
84116+
- type: object
84117+
properties:
84118+
intentType:
84119+
type: string
84120+
enum:
84121+
- delegateResource
84122+
stakingRequestId:
84123+
type: string
84124+
ownerAddress:
84125+
type: string
84126+
description: TRON address delegating resources (typically the wallet root address)
84127+
receiverAddress:
84128+
type: string
84129+
description: TRON address receiving the delegated ENERGY or BANDWIDTH
84130+
amount:
84131+
$ref: '#/components/schemas/Amount1'
84132+
resource:
84133+
type: string
84134+
enum:
84135+
- ENERGY
84136+
- BANDWIDTH
84137+
required:
84138+
- intentType
84139+
- stakingRequestId
84140+
- ownerAddress
84141+
- receiverAddress
84142+
- amount
84143+
- resource
84144+
- $ref: '#/components/schemas/BaseIntent1'
8410584145
TrxDelegationProperties:
8410684146
title: TRX Delegation Properties
8410784147
allOf:
@@ -84258,6 +84298,41 @@ components:
8425884298
- resource
8425984299
- $ref: '#/components/schemas/BaseStakeIntent'
8426084300
- $ref: '#/components/schemas/BaseIntentWithAmount'
84301+
TrxUndelegateResourceIntent1:
84302+
title: TRX Undelegate Resource Intent
84303+
description: |
84304+
Undelegates previously delegated TRON ENERGY or BANDWIDTH from the wallet root address.
84305+
For TRX (`trx`, `ttrx`) MPC (TSS) wallets only — use with [Create transaction request](/reference/v2wallettxrequestcreate).
84306+
allOf:
84307+
- type: object
84308+
properties:
84309+
intentType:
84310+
type: string
84311+
enum:
84312+
- undelegateResource
84313+
stakingRequestId:
84314+
type: string
84315+
ownerAddress:
84316+
type: string
84317+
description: TRON address that delegated the resources (typically the wallet root address)
84318+
receiverAddress:
84319+
type: string
84320+
description: TRON address from which resources are being undelegated
84321+
amount:
84322+
$ref: '#/components/schemas/Amount1'
84323+
resource:
84324+
type: string
84325+
enum:
84326+
- ENERGY
84327+
- BANDWIDTH
84328+
required:
84329+
- intentType
84330+
- stakingRequestId
84331+
- ownerAddress
84332+
- receiverAddress
84333+
- amount
84334+
- resource
84335+
- $ref: '#/components/schemas/BaseIntent1'
8426184336
TrxUnfreezeIntent:
8426284337
title: TRX Unfreeze Intent
8426384338
allOf:

express-api.yaml

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4083,7 +4083,7 @@ components:
40834083
enum:
40844084
- onchain
40854085
- tss
4086-
description: 'If absent, BitGo uses the default wallet type for the asset. This is relevant only for assets that support both multisignature (`onchain`) and MPC (`tss`) on the BitGo platform. These assets are: `arbeth`, `eth`, `opeth`, `polygon`, and `soneium`. These assets all default to `tss`.'
4086+
description: 'If absent, BitGo uses the default wallet type for the asset. This is relevant only for assets that support both multisignature (`onchain`) and MPC (`tss`) on the BitGo platform. These assets are: `arbeth`, `eth`, `opeth`, `polygon`, and `soneium`. These assets all default to `tss`. TRX (`trx`, `ttrx`) also supports MPC wallets — set `multisigType` to `tss` to create one; when omitted, TRX wallet creation is unchanged.'
40874087
type:
40884088
type: string
40894089
enum:
@@ -5196,6 +5196,8 @@ components:
51965196
- deactivate
51975197
- customTx
51985198
- closeAssociatedTokenAccount
5199+
- delegateResource
5200+
- undelegateResource
51995201
InvalidId1:
52005202
allOf:
52015203
- $ref: '#/components/schemas/PlatformErrorNoName3'
@@ -6891,6 +6893,8 @@ components:
68916893
- $ref: '#/components/schemas/SolStakeIntent1'
68926894
- $ref: '#/components/schemas/SolUnstakeIntent1'
68936895
- $ref: '#/components/schemas/TransferTokenIntent1'
6896+
- $ref: '#/components/schemas/TrxDelegateResourceIntent1'
6897+
- $ref: '#/components/schemas/TrxUndelegateResourceIntent1'
68946898
- $ref: '#/components/schemas/UnstakeIntent2'
68956899
- $ref: '#/components/schemas/WalletRecoveryIntent1'
68966900
- $ref: '#/components/schemas/WithdrawIntent2'
@@ -7490,6 +7494,77 @@ components:
74907494
allOf:
74917495
- $ref: '#/components/schemas/IntegerString'
74927496
description: String representation of the amount to limit in base units (stroops)
7497+
TrxDelegateResourceIntent1:
7498+
title: TRX Delegate Resource Intent
7499+
description: |
7500+
Delegates TRON ENERGY or BANDWIDTH from the wallet root address to a receiver address.
7501+
For TRX (`trx`, `ttrx`) MPC (TSS) wallets only — use with [Create transaction request](/reference/v2wallettxrequestcreate).
7502+
Minimum delegation amount is 1 TRX (1,000,000 sun).
7503+
allOf:
7504+
- type: object
7505+
properties:
7506+
intentType:
7507+
type: string
7508+
enum:
7509+
- delegateResource
7510+
stakingRequestId:
7511+
type: string
7512+
ownerAddress:
7513+
type: string
7514+
description: TRON address delegating resources (typically the wallet root address)
7515+
receiverAddress:
7516+
type: string
7517+
description: TRON address receiving the delegated ENERGY or BANDWIDTH
7518+
amount:
7519+
$ref: '#/components/schemas/Amount1'
7520+
resource:
7521+
type: string
7522+
enum:
7523+
- ENERGY
7524+
- BANDWIDTH
7525+
required:
7526+
- intentType
7527+
- stakingRequestId
7528+
- ownerAddress
7529+
- receiverAddress
7530+
- amount
7531+
- resource
7532+
- $ref: '#/components/schemas/BaseIntent1'
7533+
TrxUndelegateResourceIntent1:
7534+
title: TRX Undelegate Resource Intent
7535+
description: |
7536+
Undelegates previously delegated TRON ENERGY or BANDWIDTH from the wallet root address.
7537+
For TRX (`trx`, `ttrx`) MPC (TSS) wallets only — use with [Create transaction request](/reference/v2wallettxrequestcreate).
7538+
allOf:
7539+
- type: object
7540+
properties:
7541+
intentType:
7542+
type: string
7543+
enum:
7544+
- undelegateResource
7545+
stakingRequestId:
7546+
type: string
7547+
ownerAddress:
7548+
type: string
7549+
description: TRON address that delegated the resources (typically the wallet root address)
7550+
receiverAddress:
7551+
type: string
7552+
description: TRON address from which resources are being undelegated
7553+
amount:
7554+
$ref: '#/components/schemas/Amount1'
7555+
resource:
7556+
type: string
7557+
enum:
7558+
- ENERGY
7559+
- BANDWIDTH
7560+
required:
7561+
- intentType
7562+
- stakingRequestId
7563+
- ownerAddress
7564+
- receiverAddress
7565+
- amount
7566+
- resource
7567+
- $ref: '#/components/schemas/BaseIntent1'
74937568
TxAddress:
74947569
type: object
74957570
properties:

0 commit comments

Comments
 (0)