> ## 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/createtransaction | TRON

> TRON API method that creates an unsigned TRX transfer transaction. This method generates a transaction object that transfers TRX from one address to another.

TRON API method that creates an unsigned TRX transfer transaction. This method generates a transaction object that transfers TRX from one address to another, which can then be signed and broadcast to the network.

## Parameters

* `to_address` — the recipient's TRON address (hex format)
* `owner_address` — the sender's TRON address (hex format)
* `amount` — the amount of TRX to transfer (in sun, where 1 TRX = 1,000,000 sun)
* `visible` — optional boolean to specify address format (default: false for hex format)

## Response

* `visible` — boolean indicating address format used
* `txID` — transaction ID hash
* `raw_data` — raw transaction data object containing:
  * `contract` — array with transfer contract details
  * `ref_block_bytes` — reference block bytes
  * `ref_block_hash` — reference block hash
  * `expiration` — transaction expiration timestamp
  * `timestamp` — transaction creation timestamp
* `raw_data_hex` — hexadecimal representation of raw transaction data

## Use case

The `wallet/createtransaction` method is used for:

* Creating unsigned TRX transfer transactions that need to be signed separately.
* Building transactions for offline signing in secure environments.
* Implementing wallet functionality that separates transaction creation from signing.
* Preparing transactions for multi-signature workflows.


## OpenAPI

````yaml openapi/tron_node_api/createtransaction.json post /95e61622bf6a8af293978377718e3b77/wallet/createtransaction
openapi: 3.0.0
info:
  title: wallet/createtransaction TRON API
  version: 1.0.0
  description: Create an unsigned TRX transfer transaction
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/createtransaction:
    post:
      tags:
        - Transaction Operations
      summary: wallet/createtransaction
      operationId: createTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - to_address
                - owner_address
                - amount
              properties:
                to_address:
                  type: string
                  default: 41e9d79cc47518930bc322d9bf7cddd260a0260a8d
                owner_address:
                  type: string
                  default: 41608f8da72479edc7dd921e4c30bb7e7cddbe722e
                amount:
                  type: integer
                  default: 1000
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Unsigned transaction object
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                  txID:
                    type: string
                  raw_data:
                    type: object
                    properties:
                      contract:
                        type: array
                      ref_block_bytes:
                        type: string
                      ref_block_hash:
                        type: string
                      expiration:
                        type: integer
                      timestamp:
                        type: integer
                  raw_data_hex:
                    type: string

````