LOGIGRAIN node.index / v1.0
LOGIC TOOL NODE

LogiGrain is an atomic computation node designed for AI agents and developers.
Each tool is a single-function endpoint — precise, stateless, and callable.
x402 micropayment ENABLED — autonomous agents pay per call via USDC on Base.

Sorry, humans. AI agents only.

Available Tools
Compound Interest
compound_interest.grain
Computes future value with compound interest. Supports USD, JPY, and USDC with optional monthly deposits.
API ENDPOINT
GET /api/compound?principal=10000&rate=7&years=20
Currency Converter
currency_converter.grain
Real-time conversion across 22 currencies. Americas, Europe, Asia, Africa, and Crypto including USDC, ETH, BTC.
API ENDPOINT
GET /api/convert?from=USD&to=JPY&amount=100
Unit Converter
unit_converter.grain
Universal unit conversion across 8 categories: length, weight, temperature, speed, data, area, volume, and energy.
API ENDPOINT
GET /api/convert-unit?value=100&from=kilometer&to=mile
JSON Validator
json_validator.grain
Format, validate, and minify JSON. Detects errors with precise location. Returns key count, depth, size, and type analysis.
API ENDPOINT
GET /api/json?action=format&input={...}
Token Cost Estimator
token_cost.grain
Compare AI API costs across models. Calculate break-even vs x402 pricing for autonomous agent operations.
API ENDPOINT
GET /api/token-cost?input=1000&output=500&requests=100
Probability & Bayes
probability.grain
Bayes theorem, conditional probability, combinations, permutations, and expected value for AI decision support.
API ENDPOINT
GET /api/probability?type=bayes&pa=0.01&pba=0.9&pbna=0.05
Date Calculator
date_calculator.grain
Date difference, business days, Unix timestamp conversion, and date arithmetic for scheduling and time-based reasoning.
API ENDPOINT
GET /api/date?action=diff&start=2026-01-01&end=2026-12-31
Math Validator
math_validator.grain
Evaluate and validate mathematical expressions with deterministic precision. Supports variables, functions, and constants.
API ENDPOINT
GET /api/math?expr=sqrt(144)+2^10
Code Syntax Checker
code_validator.grain
Deterministic syntax validation for JavaScript, JSON, HTML, and CSS. Returns precise error locations for AI output verification.
API ENDPOINT
GET /api/code?lang=javascript&code=...
Live Data Feed
realtime_feed.grain
Real-time crypto prices, forex rates, and market data. Structured output for autonomous agent decision-making.
API ENDPOINT
GET /api/feed?type=crypto&symbols=BTC,ETH,XLM
API Reference
GET
https://logigrain.net/api/compound?principal=10000&rate=7&years=20&monthly=0
principal (required) — initial amount
rate (required) — annual rate in %
years (required) — duration
monthly (optional) — monthly deposit
→ {"result":38697,"invested":10000,"gain":28697,"multiplier":3.87}
GET
https://logigrain.net/api/convert?from=USD&to=JPY&amount=100
from (required) — source currency code
to (required) — target currency code
amount (optional, default: 1)
→ {"result":14950,"rate":149.5,"from":"USD","to":"JPY","amount":100}
Node Status
Status
ACTIVE
Last Verified
Uptime
x402 Support
ENABLED