Create a new stake
Changed onSubmit a staking request for a specific asset. The platform performs validation checks before processing the stake.
Request
- Base URLhttps://api.cert.zerohash.com
- URLhttps://api.cert.zerohash.com/stakes
- AuthAPI key in header X-SCX-API-KEY and API key in header X-SCX-PASSPHRASE
Headers
HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.
Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.
Optional client-supplied request ID used for tracing and idempotency. Must be a UUID v4. When omitted, zerohash generates one and returns it in the response X-Request-Id header.
Request body
Example request
{
"participant_code": "CUST01",
"account_label": "general",
"asset": "ETH",
"amount": "32.0"
}Response
Stake successfully submitted
Example response
{
"request_id": "8bb7e203-13e0-4208-80bc-e9fdb7faa13e",
"message": {
"stake_id": "c761fc96-5c44-40d4-8eb2-3fcd5d06754e",
"participant_code": "CUST01",
"asset": "ETH",
"amount": "10.5",
"status": "submitted",
"created_at": "2025-08-24T16:00:00Z",
"activated_at": "2025-08-25T16:00:00Z",
"activation_period_days": 7,
"estimated_active_at": "2026-05-08T16:00:00Z"
}
}Changes
- breaking
added the new required request property
- breaking
added the pattern
^[A-Za-z0-9.]+$to the request property - breaking
removed the required property
from the response with the status - warning
removed the request property
- warning
removed the request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking