Gray Encode
gray_encodeEncode a non-negative integer as a binary reflected Gray code. The code is n xor (n shifted right by one). Zero stays zero, and a negative integer is rejected. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/gray-encode
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": "gray_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |