v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Tron Paymaster

Display the specified resource.

get/api/v2/tron/paymaster/{id}

Headers

X-Network'testnet' | 'mainnet'

Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.

Authorizationstring required

Bearer token for authorization. Required for authenticated endpoints.

Content-Type'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data'

The MIME type of the request body.

Response

Succesfully parsed paymaster requests

statusinteger
okboolean
messagestring

Example response

{
  "status": 200,
  "ok": true,
  "message": "Successfully parsed paymaster request",
  "data": {
    "id": "9cfbfff2-a5ca-4268-a219-a7554ecf9fd0",
    "type": "TRC20",
    "status": "success",
    "from": "THG9nncwASg3ub5rvVquocAHwwQbnKZxpH",
    "to": "TPUjdnMrS7XDUFp5W6zgh4QDCW34nXa2x1",
    "contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "token_id": null,
    "amount": "2832.001791",
    "url": "https://api.chaingateway.io/receiver/webhooks/tron",
    "used_credits": "1.154359",
    "logs": [
      "Successfully sent TRX for bandwidth to THG9nncwASg3ub5rvVquocAHwwQbnKZxpH: e7205c6b64e3fb10262d5e235e4b08ba8ac22df5f0b39bf4be572f2263d19ed4",
      "Energy purchased successfully",
      "enough Resources: false",
      "timeout reached: false",
      "callback response: 200",
      "enough Resources: true",
      "callback response: 200"
    ],
    "created_at": "2024-09-11T13:30:48.000000Z",
    "updated_at": "2024-09-11T13:31:26.000000Z"
  }
}