Skip to main content
All endpoints live under https://staking.x402layer.cc/api/agent. Reads need no auth; mutations return an unsigned transaction you sign and submit.

1. Read (no auth)

2. Prepare a stake

Returns an unsigned base64 transaction.
Other mutating prepare endpoints follow the same shape: unstake, claim-unstake (withdraw), and claim.

3. Sign

Sign the returned transaction locally with your keypair. Conceptually:

4. Submit

You can also broadcast the signed transaction through your own RPC instead of /submit.
The same prepare → sign → submit loop works for staking, topping up, unstaking, withdrawing, and claiming. Only the prepare endpoint and body change.
See the full API Reference for every endpoint, parameter, and response schema.