MPC-TSS
Operations
Tron
Signing
Transfer TRC20

Sign Transfer TRC20

API Documentation: Sign Transfer TRC20

Overview

This API endpoint allows you to Sign a Tron transaction to transfer TRC20.

  • HTTP Method: POST
  • Endpoint: /api/v1/wallet/tron/sign/trc20

Request Body Parameters

  • walletId (required): this will be used to determine which key used to sign. The type is string.
  • to (required): the destination TRON address that will receive the coin.
  • contractAddress (required): the token contract address.
  • amount (required): in the sun format.

Example Request Body

{      
    "walletId": "...",        
    "to" : "TSw1by3r412aGu1rLJwm2ZUy9neFeGNcJh",
    "contractAddress" : "TVgtPQXuX7rpq7o1G3XtKYYesmA5jp1xpZ",
    "amount": "3000000"
}

Request

Request Headers

  • X-CLIENT-ID: (required): Client ID which was generated when register in Xellar TSS API Service Dashboard.
  • X-SIGNATURE: (required): Calculated signature, please refer to Authorization section.
  • X-TIMESTAMP: (required): Request timestamp in RFC3339 format.

Example Request Syntax

curl -X POST -H "Content-Type: application/json" -H "x-client-id: $YOUR_CLIENT_ID" -H "x-client-secret: $YOUR_CLIENT_SECRET" -d '{
    "walletId": "...",        
    "to" : "TSw1by3r412aGu1rLJwm2ZUy9neFeGNcJh",
    "contractAddress" : "TVgtPQXuX7rpq7o1G3XtKYYesmA5jp1xpZ",
    "amount": "3000000"
}' <BASE_URL>/api/v1/wallet/tron/sign/trc20

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message providing additional information about the operation.
  • data (object): An object containing the request information.
  • data.requestId (string): The unique identifier for the request.

Example Response

{
    "status": 200,
    "message": "Sign transfer token is in progress",
    "data": {
        "requestId": "9c276eb2-e0e1-4789-bd54-42d5e920379f"        
    }
}