Skip to content

Commit 37af2b0

Browse files
SahilAujlaclaude
andcommitted
docs: document the real createspendauthsig payload
TRON's SpendAuthSigParameters proto takes ask, tx_hash, and alpha and the endpoint returns a BytesMessage value, so the request schema and examples now match what the node actually accepts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8b5813a commit 37af2b0

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/openapi/tron-http/tron-http.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ paths:
31573157
/wallet/createspendauthsig:
31583158
post:
31593159
summary: Create spend authorization signature
3160-
description: Creates a spend authorization signature for a shielded transaction using a secret key and message data.
3160+
description: Creates a spend authorization signature for a shielded transaction from the spend authorizing key, the transaction hash, and the random scalar alpha.
31613161
tags:
31623162
- Tron HTTP API Endpoints
31633163
requestBody:
@@ -3167,20 +3167,23 @@ paths:
31673167
schema:
31683168
type: object
31693169
properties:
3170-
sk:
3170+
ask:
31713171
type: string
3172-
data:
3172+
tx_hash:
3173+
type: string
3174+
alpha:
31733175
type: string
31743176
example:
3175-
sk: "secret_key"
3176-
data: "message_to_sign"
3177+
ask: "spend_authorizing_key"
3178+
tx_hash: "transaction_hash"
3179+
alpha: "random_scalar"
31773180
responses:
31783181
"200":
31793182
description: Spend authorization signature created
31803183
content:
31813184
application/json:
31823185
example:
3183-
signature: "signed_data"
3186+
value: "signature_bytes"
31843187

31853188
/wallet/gettriggerinputforshieldedtrc20contract:
31863189
post:

0 commit comments

Comments
 (0)