Hinkal WaaS

Public To Public

Send tokens from public address to public address

POST/waas/public-to-public
https://api.hinkal.io/waas/public-to-public

Executes a deposit-and-withdraw: deposits tokens into the Hinkal contract and immediately schedules a withdrawal to the recipient. Returns the deposit txHash and a scheduleId you can poll via GET /waas/scheduled-transaction/{scheduleId} to track withdrawal status.

Request body application/jsonrequired

NameTypeDescription
organizationIdrequiredstring
userIdrequiredstring
fromAddressrequiredstring
torequiredstringRecipient address
tokenrequiredstringToken contract address (ERC20 / SPL / TRC20)
amountrequiredstringAmount to transfer
chainIdrequiredstring
noncerequiredstring

Responses

200Deposit transaction submitted and withdrawal scheduled

No body

400Bad request
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring
401Invalid or missing X-Stamp
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring
500Internal server error
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring

Poll the status of a scheduled withdrawal

GET/waas/scheduled-transaction/{scheduleId}
https://api.hinkal.io/waas/scheduled-transaction/{scheduleId}

Use the scheduleId returned by POST /waas/public-to-public to check whether the withdrawal has been sent on-chain. Poll until status is completed, failed, or deposit_failed.

This route is parameterized, so the X-Stamp binding is the literal string "GET /waas/scheduled-transaction/:scheduleId" — with the :scheduleId placeholder unresolved, not the actual scheduleId value from the URL.

Path parameters

NameTypeDescription
scheduleIdrequiredstringThe scheduleId returned by POST /waas/public-to-public

Responses

200Scheduled transaction status

No body

401Invalid or missing X-Stamp
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring
404Resource not found
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring
500Internal server error
NameTypeDescription
statusrequiredstring
One of: "error"
messagerequiredstring