tron_sign
Sign Tron transactions without TronWeb using Node crypto and elliptic. Accepts raw_data_hex or unsigned hex, returns signedTransactionHex. Private key passed as parameter.
Instructions
Sign a Tron transaction (no TronWeb): Node crypto (sha256) + elliptic (secp256k1) + minimal protobuf encode/decode. Two actions: (1) sign-from-details: sign from transaction object (must include raw_data_hex); (2) sign-unsigned-hex: sign from raw unsigned tx hex. Returns signedTransactionHex. Private key is passed as parameter (never from env). SECURITY: Private keys may be logged by MCP clients or stored in conversation history — use only in trusted local environments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tron_sign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||