---
title: "Create Paymaster Request"
method: POST
path: "/api/v2/tron/paymaster"
tags: ["Tron Paymaster"]
---

# Create Paymaster Request

`POST /api/v2/tron/paymaster`

This endpoint is used to create a new paymaster request.

## Headers

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

## Request body

- object
  - `type` 'TRX' | 'TRC10' | 'TRC20' | 'TRC721', required — The type of transaction.
  - `from` string, required — The address to send the transaction from.
  - `to` string, required — The address to send the transaction to.
  - `contractaddress` string — The contract address of the token. This field is required when <code>type</code> is <code>TRC20</code> or <code>TRC721</code>.
  - `tokenid` number — The token id of the token. This field is required when <code>type</code> is <code>TRC721</code> or <code>TRC10</code>.
  - `amount` string, required — The amount to send.
  - `password` string — The password for the address. This field is required when <code>privatekey</code> is not present.
  - `privatekey` string — The private key of the sender.
  - `callback_url` string — The callback url to send the response to.

## Response `200`

Succesfully created paymaster requests

- object
  - `status` integer
  - `ok` boolean
  - `message` string
  - `data` object
    - `id` 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/revisions/ddb709b4ade7/schema)
