> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/createshieldedtransaction | TRON

> Create fully signed shielded TRX transactions client-side. Public TRON nodes generally do not expose an RPC for wallet/createshieldedtransaction.

Create fully signed shielded TRX transactions client-side. Public TRON nodes generally do not expose an RPC for `wallet/createshieldedtransaction`; attempting to POST to that route returns HTTP 405. Build shielded transactions locally using TRON shielded transaction libraries.

## Parameters

* `transparent_from_address` — the transparent TRX address sending funds (optional)
* `from_amount` — the amount to send from transparent address (in sun)
* `spend_authority_signature` — array of spending authority signatures for shielded inputs
* `ask` — authentication secret key for transaction signing
* `nsk` — nullifier secret key for creating nullifiers
* `ovk` — outgoing viewing key for transaction encryption
* `to_address` — recipient shielded address
* `to_amount` — amount to send to shielded address (in sun)

## Response

* `txID` — the transaction ID hash
* `raw_data_hex` — the raw transaction data in hexadecimal format
* `raw_data` — the structured raw transaction data

## Use case

The `wallet/createshieldedtransaction` method is used for:

* Creating fully signed shielded TRX transactions for immediate broadcast
* Transferring TRX between transparent and shielded addresses
* Supporting complete privacy-preserving TRX transactions
* Enabling applications to create ready-to-broadcast shielded transactions

## Client-side implementation

<Info>
  Public nodes typically return HTTP 405 for this route. Build shielded transactions client-side using TRON privacy libraries (e.g., tronweb with shielded support) or Sapling-compatible implementations. Generate and sign the transaction locally, then broadcast via `wallet/broadcasttransaction`.
</Info>

Use TRON's shielded transaction libraries to:

1. Construct the shielded inputs (spends) and outputs (receives) using your key material (ask, nsk, ovk)
2. Generate the zero-knowledge proof parameters offline
3. Sign the transaction with spending authority signatures
4. Build the complete signed raw transaction structure
5. Broadcast the transaction via `wallet/broadcasttransaction`


## OpenAPI

````yaml openapi/tron_node_api/shielded_createshieldedtransaction.json post /95e61622bf6a8af293978377718e3b77/wallet/createshieldedtransaction
openapi: 3.0.0
info:
  title: wallet/createshieldedtransaction TRON API
  version: 1.0.0
  description: Create a fully signed shielded TRX transaction
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/createshieldedtransaction:
    post:
      tags:
        - Shielded Contract Methods
      summary: wallet/createshieldedtransaction
      operationId: createShieldedTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - to_address
                - to_amount
              properties:
                transparent_from_address:
                  type: string
                  description: Transparent TRX address sending funds
                  example: TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE
                from_amount:
                  type: integer
                  description: Amount to send from transparent address in sun
                  example: 1000000
                spend_authority_signature:
                  type: array
                  description: Array of spending authority signatures
                  items:
                    type: string
                ask:
                  type: string
                  description: Authentication secret key (64 hex characters, no 0x prefix)
                  example: >-
                    08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890
                nsk:
                  type: string
                  description: Nullifier secret key (64 hex characters, no 0x prefix)
                  example: >-
                    09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890
                ovk:
                  type: string
                  description: Outgoing viewing key (64 hex characters, no 0x prefix)
                  example: >-
                    0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890
                to_address:
                  type: string
                  description: Recipient shielded address
                  example: >-
                    ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9
                to_amount:
                  type: integer
                  description: Amount to send to shielded address in sun
                  example: 1000000
      responses:
        '200':
          description: Successfully created shielded transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  txID:
                    type: string
                    description: Transaction ID hash (64 hex characters, no 0x prefix)
                    example: >-
                      1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890
                  raw_data_hex:
                    type: string
                    description: Raw transaction data in hexadecimal
                  raw_data:
                    type: object
                    description: Structured raw transaction data

````