# Kristaps Grinbergs

> Developer Relations Engineer Lead at Flare Network. Writing on x402 payments, AI agents, stablecoins, and Web3.

Kristaps Grinbergs (fassko) is Developer Relations Engineer Lead at Flare Network, based in Riga, Latvia. Before Flare he spent a decade as technical co-founder of Qminder. He ships x402 payment integrations, AI agents that pay with stablecoins, Flare Confidential Compute (TEE) demos, the Flare MCP server, and Flare AI Skills for coding agents.

## When to use this site

- Questions about Kristaps Grinbergs (also "fassko"): his role at Flare Network, past work as Qminder technical co-founder, talks, and how to contact him.
- First-hand write-ups on x402 HTTP payments for AI agents, stablecoin pay-per-call APIs, and Flare Confidential Compute (TEEs) on Flare Network.
- Pointers to the Flare MCP server and Flare AI Skills. For current Flare Network API details, prefer the Flare Developer Hub (https://dev.flare.network) and the MCP server, which are kept up to date.
- Older tutorials on Solidity (ERC-20, ERC-721, EIP-712, proxies) and SwiftUI/iOS. Check the post date: posts from 2019-2023 may use deprecated APIs.
- Every post and project page has a Markdown copy: append `.md` to the path without the trailing slash (for example https://kristaps.me/blog/x402-ai-agent-stablecoin-payments.md). The home page is at https://kristaps.me/index.md.

## Pages

- [About](https://kristaps.me/about/): Background, Flare Network, Qminder, x402, AI agents
- [Contact](https://kristaps.me/contact/): Email and profiles; consulting, talks, and workshops
- [Home](https://kristaps.me/): Overview and recent posts
- [Talks](https://kristaps.me/talks/): AI Connect, W3N, DappCon TEEs, EthCC, Flare Builders x402 workshop
- [Projects](https://kristaps.me/projects/): Index of Web3, AI, and iOS work
- [Blog](https://kristaps.me/blog/): All articles

## Agent resources

- [Flare MCP server](https://mcp.flare.network/): Streamable HTTP MCP endpoint, no API key. Developer Hub search, Flare Network chain state, unsigned transactions
- [Flare MCP server setup](https://dev.flare.network/network/guides/flare-mcp-server): Claude Code, Cursor, and Claude Desktop setup
- [Flare AI Skills](https://github.com/flare-foundation/flare-ai-skills): Agent skills with Flare Network domain knowledge for Claude Code, Cursor, Codex
- [Flare Developer Hub](https://dev.flare.network): Official Flare Network developer documentation

## Projects

- [Flare Network](https://kristaps.me/projects/flare-network/): Developer Relations across Flare's product suite: developer tools, documentation, hackathons, and onboarding for builders and AI agents.
- [Flare MCP Server](https://kristaps.me/projects/flare-mcp/): A hosted MCP server at mcp.flare.network that gives coding agents live Flare Network data: Developer Hub search, chain state, and unsigned transactions for FTSO, FDC, FAssets, Smart Accounts, and Confidential Compute.
- [Flare AI Skills](https://kristaps.me/projects/flare-ai-skills/): Agent skills that give AI coding assistants like Cursor, Claude Code, Codex and other coding agents structured domain knowledge of Flare Network.
- [x402 Weather Insurance Agent](https://kristaps.me/projects/x402-agent/): Parametric rainfall insurance on Flare Network. An AI agent pays per weather API call with x402. The TEE verifies on-chain FeeCollected before calling OpenWeatherMap.
- [Latvia Weather](https://kristaps.me/projects/latvia-weather/): LVĢMC forecasts, warnings, and a 72-hour map for places across Latvia — on the web, iPhone, Apple TV, and Android.
- [Salto X](https://kristaps.me/projects/salto-x/): Equity distribution for European companies — Solidity smart contracts and a full-stack Next.js app.
- [Qminder](https://kristaps.me/projects/qminder/): Queue management for touchless customer service. Led mobile: the iOS dashboard, iPad self sign-in, and Apple TV queue displays.

## Writing

- [What is x402? How I charged a weather API in stablecoins so an AI agent could pay (2026)](https://kristaps.me/blog/x402-ai-agent-stablecoin-payments/): x402 turns HTTP 402 into a payment handshake. I used it on Flare Network so an AI agent could pay per weather API call in an ERC-20, with the API key locked inside a TEE.
- [Understanding approve() in ERC-20: Why It Matters and How to Use It Safely (2025)](https://kristaps.me/blog/solidity-erc-20-approve/): This post takes a closer look at the `approve()` function in the ERC-20 token standard. While commonly used in DeFi applications, it introduces a huge risk if not handled correctly. Learn how to use it safely and avoid known vulnerabilities.
- [Back from Berlin Blockchain Week: Thoughts on DappCon, Privacy, and Where Blockchain Goes Next (2025)](https://kristaps.me/blog/dappcon-2025-berlin/): DappCon in Berlin brought together builders tackling the big questions in Web3 - stablecoins, privacy, regulation, and UX. Berlin's deep-rooted values of privacy and self-expression made it the perfect setting. This post shares key insights from the conference and reflects on what still needs fixing to bring blockchain to everyday life.
- [Understanding Escrow in ERC-721 NFT Smart Contracts (2024)](https://kristaps.me/blog/erc-721-escrow/): The ERC-721 standard helps make buying and selling unique digital items (NFTs) safe and reliable. It is crucial to secure transactions between two parties. That is where escrow services come in. They act like a safety net, holding an NFT until everyone agrees and all rules have been met. Let's explore how we can develop an escrow using the ERC-721 standard using OpenZeppelin implementation.
- [Exploring Nested Mappings in Solidity (2024)](https://kristaps.me/blog/nested-mappings-solidity/): Nested mappings in Solidity offer developers powerful tools to efficiently organize and manipulate complex data structures. This blog post explores how to use nested mappings and their practical applications and provides transformative examples in smart contract development.
- [Understanding tx.origin and msg.sender in Solidity (2024)](https://kristaps.me/blog/txorigin-vs-msgsender/): Developers need to understand the difference between `tx.origin` and `msg.sender` in Solidity. These two global variables often need clarification with each other despite their fundamental differences. While they may appear similar at first glance, `tx.origin` and `msg.sender` represent distinct addresses in the context of a transaction. In this blog post, we will delve deeper into the meanings of each of these variables.
- [Understanding ERC-4337 and the Future of Ethereum User Experience: Account Abstraction (2023)](https://kristaps.me/blog/solidity-account-abstraction/): In Ethereum Improvement Proposal 4337 (ERC-4337), account abstraction simplifies user interaction and the blockchain. It eliminates the need for users to deal with the complexities of wallets, making blockchain applications (dApps) more accessible to users. For instance, users can use social login to interact with dApps, and there is no need for private keys or seed phrases anymore. In this series of posts, I will provide a high-level overview of the topic in this post and dive into the code in the following ones.
- [Structs in Solidity: Mastering Data Organization in Ethereum Smart Contracts (2023)](https://kristaps.me/blog/solidity-structs/): The Solidity programming language for Ethereum smart contracts, offers a robust feature known as **structs** that is indispensable in organizing and structuring information. These user-defined data types allow us to bundle variables under a single name, effectively creating blocks of organized data with set boundaries. Not only do structs enhance code readability and maintainability, but they also offer flexibility in instantiation. There are three ways to instantiate a struct in Solidity, each with advantages and use cases. In this blog post, we'll explore the nitty-gritty of Solidity structs, exploring their significance.
- [Beyond Default Messages: Mastering Custom Errors in Solidity (2023)](https://kristaps.me/blog/solidity-custom-error/): Solidity's custom errors offer significant advantages in blockchain development, enhancing smart contract robustness and clarity. These errors provide detailed and precise error messages, improving the ease of issue diagnosis. Additionally, they strengthen code readability by allowing for clear naming of error conditions and improve gas efficiency by enabling compact encoding of error information. Embracing these custom errors can revolutionize your Solidity development experience. Let's see how we can use custom errors in our Ethereum smart contracts.

## Optional

- [llms-full.txt](https://kristaps.me/llms-full.txt): Full post bodies, including older Solidity and SwiftUI
- [SwiftUI posts](https://kristaps.me/tags/swiftui/): iOS and SwiftUI notes
- [Solidity posts](https://kristaps.me/tags/solidity/): Language and ERC tutorials
- [RSS feed](https://kristaps.me/feed.xml): Subscribe to new posts
- [Tags](https://kristaps.me/tags/): Browse posts by topic
- [Email](mailto:fassko@gmail.com): fassko@gmail.com
- [LinkedIn](https://www.linkedin.com/in/kristapsgrinbergs/): kristapsgrinbergs
- [X (Twitter)](https://x.com/fassko): @fassko
- [GitHub](https://github.com/fassko): fassko
- [Telegram](https://t.me/kristapsgrinbergs): kristapsgrinbergs
