Paygo

Paygo: submit both signed transactions

Submit the signed token transfer and the signed TRX fee payment for a previously issued estimate. PowerSun executes the full sequence server-side: payment first, then resource delegation and the transfer broadcast. Idempotent — re-submitting the same pair returns the existing order.

post/api/v1/paygo/submit

Request

  • Base URL: https://powersun.vip
  • URL: https://powersun.vip/api/v1/paygo/submit
  • Auth: API key in header X-API-Key

Request body

estimateIdstring required
signedTransactionobject required

Signed token transfer (expiration must be ≥ 5 minutes; extend BEFORE signing; fee_limit ≥ 1 TRX)

signedPaymentobject required

Signed TRX transfer of exactly feeSun (from the estimate) to payTo

dryRunboolean

Integration-testing aid: run the COMPLETE validation pipeline (parsing, txID integrity, estimate cross-checks, signature recovery, duplicate detection, price freshness) but create nothing — no order, the estimate stays unconsumed, no funds can move. Response: {dryRun:true, valid:true, priceStillValid, currentFeeSun}. Use it to verify your transaction-building code before spending anything.

Response

Order accepted

orderIdstring
statusstring

Example response

{
  "orderId": "po_31bb02e4",
  "status": "received"
}

Changes

No recorded changes to this operation across all 1 revision of this API.