---
title: "Build TRX transaction (self signing)"
method: POST
path: "/api/v2/tron/transactions/build"
tags: ["Tron Transactions"]
---

# Build TRX transaction (self signing)

`POST /api/v2/tron/transactions/build`

This method creates a new TRC20 transaction for self signing, so this method will return the raw transaction hex. <br>
Using this method, the transaction will not be broadcasted to the blockchain. <br>

You should use this method for self signing transactions. <br>

To send the transaction to the blockchain, you can use the broadcast endpoint. <br>

## Headers

- `X-Network` 'testnet' | 'mainnet'
- `Authorization` string, required
- `Content-Type` 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data', required

## Request body

- object
  - `amount` number, required — The amount to send.
  - `to` string, required — The address to send the transaction to. Must match the regex /^T[a-zA-Z0-9]{33}$/.
  - `from` string, required — The address to send the transaction from. Must match the regex /^T[a-zA-Z0-9]{33}$/.

## Response `201`

Succesfully created transaction

- object
  - `status` integer
  - `ok` boolean
  - `message` string
  - `data` object
    - `visible` boolean
    - `txID` string
    - `raw_data` object
      - `contract` object[]
        - `parameter` object
          - `value` object
            - `amount` integer
            - `owner_address` string
            - `to_address` string
          - `type_url` string
        - `type` string
      - `ref_block_bytes` string
      - `ref_block_hash` string
      - `expiration` integer
      - `timestamp` integer
    - `raw_data_hex` string

---

[API](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation.md) · [All operations](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaingateway/chaingateway-api-documentation/versions/ddb709b4ade7/schema)
