Kaprekar Step
kaprekar_stepOne step of the four-digit Kaprekar routine, padding with leading zeros. 3524 gives 3087, 14 gives 4086, 6174 gives 6174, and a repdigit such as 1111 gives 0. n runs from 0 to 9999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/kaprekar-step
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>"
},
"name": "kaprekar_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |