Cross-chain wallet analysis with OpenAI and Hive
OpenAI's Responses API can call remote MCP servers from server-side code by passing a server_url and authorization token. Register Hive as the MCP tool provider and your OpenAI agent can call get_wallet_balances, get_wallet_history, and get_nfts_for_owner across EVM and Solana in one workflow — returning a cross-chain portfolio view with USD-denominated values, top holdings, transaction history, and active token approvals. ChatGPT developer-mode apps are still beta and currently document OAuth/no-auth/mixed auth choices, so direct ChatGPT UI setup may require an OAuth-compatible proxy until Hive ships OAuth/CIMD.
Client: OpenAI Responses API · Workflow: Wallet analysis
Hive tools used
get_wallet_balances— Cross-chain wallet balances (EVM + Solana) with USD valuations and consistent Hive execution metadata regardless of upstream provider.get_wallet_history— Transaction history with chain, type (transfer/swap/approval), counterparty, and asset breakdown.get_nfts_for_owner— NFT holdings with collection metadata, floor prices (if available), and rarity signals where the upstream provides them.get_token_approvals— Active token approvals — surfaces unrevoked approvals to potentially-malicious contracts for safety review.
Steps
- Add Hive as an OpenAI remote MCP tool
In server-side OpenAI API code, set the MCP tool server_url to Hive and pass the Hive API key as the MCP authorization token. Keep the Hive key out of prompts and client-side code.
tools: [{ type: "mcp", server_label: "hive", server_url: "https://mcp.hiveintelligence.xyz/mcp", authorization: process.env.HIVE_API_KEY }] - Test with a known wallet
Send a wallet-analysis prompt through your OpenAI agent. The model calls Hive's wallet tools and returns balances, history, NFTs, and approvals as a structured summary.
- Ask for cross-chain context
For wallets active across multiple chains (for example Ethereum, Base, Arbitrum, and Solana), the agent can call Hive separately per chain and merge the results. Shared execution metadata makes freshness and status checks consistent across chains.
- Surface security risks
Ask the agent to flag stale approvals or unusual history such as sudden large outflows, dust attacks, or MEV-bot interactions. It can call get_token_approvals to enumerate active approvals and recommend revocations.
- Plan the ChatGPT app path separately
If you want this inside ChatGPT developer mode, put an OAuth-compatible adapter in front of Hive or wait until Hive exposes OAuth/CIMD. The public Hive endpoint is API-key based, while ChatGPT app setup currently documents OAuth/no-auth/mixed auth flows.
Example prompt
Analyze wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 across supported chains. Show holdings over $1K, recent activity, and any risky approvals I should review.
Example output shape
Example output shape (illustrative values; run the tools for live data):
I analyzed the wallet across supported EVM and Solana surfaces and grouped the response by chain.
Top holdings over $1K:
- ETH (Ethereum): value, token balance, and price timestamp
- USDC (Base): value, token balance, and price timestamp
- WBTC (Arbitrum): value, token balance, and price timestamp
Recent activity:
- Swaps, transfers, and contract interactions grouped by chain
- Any unusually large inflows or outflows called out with transaction hashes
Approval review:
- Spender address, token, allowance, chain, and risk reason
- Suggested action: review in the wallet UI or revoke with a trusted revocation tool after verifying the spender.Related glossary terms
Related recipes
- Compare DeFi yields and protocol health from Cursor
- Detect rugpulls and honeypots from Claude Desktop
See also
- All recipes — every Hive × AI client combination
- Hive for AI agents — install paths and capability overview
- Comparisons hub — Hive vs alternatives