Totp
totpTOTP / HOTP two-factor codes (RFC 6238 / 4226), compatible with Google Authenticator, Authy, 1Password and pyotp: generate the current code (plus previous / next and seconds remaining), verify a code with a drift window, create a new base32 secret with its otpauth:// URI for QR enrolment, or parse an otpauth URI. SHA1 / SHA256 / SHA512, 6–8 digits, any period; set time for reproducible results or counter for HOTP. POST so secrets never appear in URLs; secrets are not stored. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/totp
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "totp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | parse-uri: otpauth://totp/... or otpauth://hotp/... | |
| code | No | verify: the code to check | |
| mode | No | generate | |
| time | No | Unix time (default: now) | |
| bytes | No | new-secret: secret length in bytes | |
| digits | No | ||
| issuer | No | ||
| period | No | ||
| secret | No | Base32 shared secret (spaces / lowercase OK) | |
| window | No | verify: steps accepted either side | |
| account | No | Account label for the otpauth URI, e.g. alice@example.com | |
| counter | No | HOTP counter (switches to HOTP) | |
| algorithm | No | SHA1 |