Skip to content
HisarPay

API reference

Reference data

Rates, coins and limits, processing status and chain lookups.

GET/v1/rates

Current USD rates

Scope: readKey: live or test

Responses

  • 200 OKJSON response
Example request
curl https://hisarpay.com/v1/rates \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/tokens

Supported coins and limits

Scope: readKey: live or test

Responses

  • 200 OKJSON response
Example request
curl https://hisarpay.com/v1/tokens \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/status

Payment processing status

Scope: readKey: live or test

Responses

  • 200 OKJSON response
Example request
curl https://hisarpay.com/v1/status \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/chain/transactions/{txid}

On-chain transaction status

Scope: readKey: live or test

Path parameters

  • txidstringrequired

    TRON transaction id (64 hex characters).

    pattern ^[0-9a-fA-F]{64}$

Responses

  • 200 OKJSON response
Example request
curl https://hisarpay.com/v1/chain/transactions/9f2c51d7a0b3e4f5061728394a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7 \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/chain/addresses/{address}

Address validity, activation and balances

Scope: readKey: live or test

Path parameters

  • addressstringrequired

    The TRON address to look up.

    ≤ 64 chars

Responses

  • 200 OKJSON response
Example request
curl https://hisarpay.com/v1/chain/addresses/TPayoutAddressSavedInDashboard001 \
  -H "Authorization: Bearer $HISARPAY_API_KEY"