---
title: "Send TRX"
method: POST
path: "/api/v2/tron/transactions"
tags: ["Tron Transactions"]
---

# Send TRX

`POST /api/v2/tron/transactions`

This method creates a new transaction. <br>
If the transaction is successful, it will return the transaction hash. <br>
If the transaction fails, it will return an error message. <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.
  - `password` string — This field is required when <code>privatekey</code> is not present.
  - `privatekey` string — The private key of the sender.
  - `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
    - `txid` string

## Other responses

- `422`

---

[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)
