Direct low-latency access to the on-chain Werracle decision oracle and Uniswap v4 fee governor running live on the mechsrv EVM sandbox.
Returns real-time status of the Anvil EVM node, current block number, active contract addresses, and gas benchmark metrics.
curl -s https://api.answerr.me:4431/werracle/status
Invokes the decideNoul(bytes32 stateHash, int64 riskScoreFP) function directly on the deployed Werracle.sol contract via intra-block EVM simulation. Returns permission boolean, basis points confidence, gas consumed (~21k gas), and block height.
curl -s -X POST https://api.answerr.me:4431/werracle/oracle/noul \
-H "Content-Type: application/json" \
-d '{"risk_score": -0.25}'
Calls calculateDynamicFee(bytes32 poolId, int64 imbalanceSignalFP) on WerracleFeeHook.sol to calculate dynamic LP fee pips (500 to 5000 pips) based on pool volatility.
curl -s -X POST https://api.answerr.me:4431/werracle/hook/fee \
-H "Content-Type: application/json" \
-d '{"imbalance_ratio": 0.35}'
Standard Ethereum JSON-RPC pass-through endpoint. Compatible with Ethers.js, Web3.py, Foundry cast, and MetaMask.
curl -s -X POST https://api.answerr.me:4431/werracle/rpc \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'