Three parts, one analyst
Blaron built the analyst as three pieces of software sharing the same token checks:
- An assistant bot that takes questions by text or voice note and answers by voice
- An analysis API that gathers token-security and wallet data and puts it into plain language
- A report bot that turns a contract address into a branded, ten-page PDF
Ask by text or by voice
The first assistant runs on Node.js and transcribes voice notes with OpenAI Whisper. The bot takes the first Ethereum address in the message, or the last one the user asked about, checks through Infura whether it is a contract or a wallet, and fetches audit, holder or portfolio data from a separate analysis service. It picks the field the question is about, such as the score, ownership, tax or liquidity, and GPT-4-turbo rewrites the answer as a first-person reply of a few sentences in one of six languages. OpenAI text-to-speech reads it back in a female or male voice, and a message asking for a report or PDF also gets it as a PDF file.
One question, one route
A later Python version hands each question to GPT-4o, and in its last form to a fine-tuned GPT-4o model, which picks one route: ownership, renouncement, liquidity lock, score, safety, wallet profit and loss, portfolio, or a free-form reply. Users can turn spoken replies on or off, choose a voice, and keep asking about the same token, by text or voice, for ten minutes.
The analysis API
The analysis then moved into an aiohttp API, packaged with Docker and set up for Google Cloud Run through Cloud Build:
- For an Ethereum or BNB Smart Chain contract, it combines the GoPlus Security and Token Sniffer APIs with a honeypot simulation: honeypot flags, buy and sell tax, creator holdings, liquidity lock, and flags such as minting, pausable transfers and a hidden owner
- It scores the token out of ten: points for renounced ownership with no hidden owner, locked liquidity, taxes of seven percent or less and a team share under five percent, and zero for a honeypot
- It writes a plain-language summary of each token for an AI agent, and caches results for a few minutes
- For a wallet, it returns net worth, a profit-and-loss summary and holdings from the Moralis API, with numbers spelled out so a voice can read them
- A prototype connected Hume's voice interface to the same token data through tool calls
Reports as PDF
The report bot answers /report and a contract address with a ten-page PDF. It runs the same checks and score, writes the results onto designed page templates with Pillow and assembles an A4 file with ReportLab:
- A cover with the token's name and the time it was generated, then token facts: symbol, address, chain, verified source code, liquidity lock, social links and the score
- A numbered list of issues found, and a page marking contract functions flagged by the Token Sniffer API: pausing, minting, a blocklist, fee changes, a proxy and a maximum transaction size
- Supply, decimals, buy and sell tax, and the ten largest holders from the GoPlus Security API
