Public To Public
Send tokens from public address to public address
/waas/public-to-publicExecutes 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
| Name | Type | Description |
|---|---|---|
organizationIdrequired | string | |
userIdrequired | string | |
fromAddressrequired | string | |
torequired | string | Recipient address |
tokenrequired | string | Token contract address (ERC20 / SPL / TRC20) |
amountrequired | string | Amount to transfer |
chainIdrequired | string | |
noncerequired | string |
Responses
200Deposit transaction submitted and withdrawal scheduled
No body
400Bad request
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |
401Invalid or missing X-Stamp
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |
500Internal server error
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |
Poll the status of a scheduled withdrawal
/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
| Name | Type | Description |
|---|---|---|
scheduleIdrequired | string | The scheduleId returned by POST /waas/public-to-public |
Responses
200Scheduled transaction status
No body
401Invalid or missing X-Stamp
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |
404Resource not found
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |
500Internal server error
| Name | Type | Description |
|---|---|---|
statusrequired | string | |
messagerequired | string |