Circles is all about creating a fairer money system. Our current monetary system and most cryptocurrencies tend to benefit those with established wealth and market positions, making it challenging for newcomers to catch up. Wealth grows disproportionately for those already in the market, as time in the market often beats time to market.
Circles aims to solve this by ensuring equal opportunity for all. Each user continuously generates tokens at a rate of one Circle (CRC) per hour, regardless of when they join. Additionally, existing Circles incur a demurrage fee of 7% per year. By tying the issuance of tokens to time, a resource everyone has, Circles promotes fairness by giving everyone a chance to accumulate tokens and encouraging the active circulation of currency.
Issuance
Circles employs a unique token issuance mechanism where each user generates their own currency (CRC) at a steady rate of one token per hour. The minting rules are encoded in the so-called Hub, a token factory from which all individual Circles tokens are created.
All tokens existing in the system are ultimately rooted in personal tokens (Circles v1 only includes personal tokens, while v2 adds group currencies which are collateralized by personal tokens).
Demurrage
All tokens are automatically demurred at a rate of 7% per year.
For human users, the demurrage is offset by the steady income of new CRC. Only after minting for 80 years (roughly a human lifespan) or through economic activity can a person become negatively affected by demurrage. Once the person dies, no new tokens are minted and all of the person's tokens are subjected to demurrage.
Organizations cannot mint tokens. Therefore, their balance is always subject to a demurrage of 7% per year.
The following graph visualizes the balance of an account over time, assuming no economic activity and continuous minting of all CRC.
If understood as a tax, then the tax would be negative at first (you get money), but once your balance reaches the threshold of 125.000 Circles, it turns positive (you loose money).
Implementation
Circles v2 is built on the ERC1155 token standard. Here, the Hub uses a standard allowance to facilitate path transfers. The token metadata mimics as profile.
Halting Mint
In Circles v2, there is a limit that allows a maximum minting amount of 14 days' worth of Circles. Minting can be stopped manually if required.
Welcome to Circles
We introduce Circles, a new currency framework that leverages modern cryptography to build trust without centralized gatekeepers. By decentralizing money creation, Circles distributes the privilege of issuing currency to every individual, fostering a more inclusive and resilient monetary system.
Circles is built on a few powerful principles that make money creation fair, efficient, and resilient. By moving money creation from centralized institutions to individuals—and by harnessing real-life trust—Circles reimagines currency.
Build on the Circles Protocol
About Circles
Under the hood, Circles relies on five simple rules:
Universal access allows anyone to open an account.
Distributed issuance grants each account the right to mint 1 CRC per hour.
Demurrage applies a 7 % yearly decay to every CRC, preventing early adopters from dominating the supply.
Circles also uses an invitation system for onboarding: existing users invite newcomers by paying 96 CRC, while the invitee receives 48 CRC as a welcome bonus. This helps protect network integrity and creates a meaningful cost to discourage spam accounts and Sybil style abuse.
Because payments flow along real-world social links, Circles is both resilient and versatile. Trust can be revoked at any time, shielding honest users from malicious actors, yet the transitive nature of swaps means you can still pay strangers seamlessly. Groups and Organizations add a “fast lane” for adoption: they pool liquidity, act as local or thematic currencies, and let communities balance efficiency against security. The result is a self-governing monetary network in which issuance, security and economic coordination rest with the people who use it.
This documentation helps developers explore Circles’ capabilities and delve into the Circles SDK and its various components.
Understanding Personal and Group Currencies
In Circles, money is generated collectively by many individuals over time rather than by a central authority at specific events.
When you become part of the Circles network, every person has their own personal Circles token and receives one Circle (CRC) per hour, unconditionally.
The trust network forms a social graph where each trust relationship acts as a link, allowing tokens to flow between individuals through these connections. This ensures that the value of Circles is supported by genuine social relationships, fostering a community-driven economy.
At the same time, this mechanism is an effective soft sybil protection, as it decentralises the verification process and relies on human judgment for trust, preventing fake accounts from compromising the network. Since the connections between Circles accounts have a limited capacity (defined by their balances of fungible tokens), this limits the impact of fake accounts that manage to get trusted by a credible member of the network to their direct surroundings.
The Circles Stack
Developers Hub for building with Circles.
Our developer documentation portal provides comprehensive guide to build using Circles SDK, SDK references, contract addresses, and code examples to help you integrate Circles into your applications and build upon our ecosystem.
Circles SDK
If you want to develop a server or client application that utilizes Circles, and allow you to utilize trust connection and personal/group currencies, then Circles SDK would be your entry point. Based on your need, you can pick to develop any avatar post initialization of SDK.
Why Build on Circles?
Circles is a decentralized protocol with a social and economic value for humans, communities and groups. Circles is not a crypto startup or product in general, but a collective effort to bring a fair distribution model for the money created, owned and shared by people.
Explore our developer documentation, and join us in our mission to create a fair and sustainable economy for all.
A Rule of Trust lets users swap CRC 1:1 along their social trust graph, so individual non-fungible “personal monies” converge into a commonly spendable currency.
Members of a Circles Groups can mint a shared CRC backed by members’ coins, giving communities their own monetary layer.
Personal Currencies and Trust Path
Personal currencies are unique and require trust to be transferred to others. To send tokens, other users must first trust your personal currency. When someone trusts your tokens, they become fungible with their own tokens.
This fungibility allows for the transfer of tokens along a trust path, enabling transactions even between people who do not directly trust each other.
Group Currencies
Additionally, Circles v2 introduces support for group currencies, allowing communities to share a currency backed by their members' personal tokens.
This collective currency reduces risk, simplifies payments, and enhances market creation by aggregating individual tokens into a more stable and fungible group currency. Group currencies make it easier to integrate Circles into existing economic structures and protocols, further promoting a robust and interconnected community economy.
Each user generates tokens continuously at a rate of one Circle (CRC) per hour, ensuring equal opportunity regardless of when they join. This promotes fairness as everyone has a chance to accumulate Circles.
Circles operates on a trust-based model, forming a social graph where users trust each other's CRC tokens. Trusted tokens become fungible, creating a dynamic economy backed by genuine social connections.
Circles integrates a demurrage mechanism, applying a 7% annual fee on held tokens. This keeps the currency circulating, benefiting the overall economy and promoting continuous engagement within the community. For most human users, the fee is offset by the steady income of 1 CRC per hour. Organizations always have to pay the fee.
By decentralising the verification process and leveraging human judgment for trust, Circles addresses the issue of fake accounts. This fosters a secure and resilient ecosystem, where the authenticity of each user is ensured by their social connections rather than centralised authorities or algorithms.
Circles allows creation of group currencies, enabling communities to share a currency that's backed by their members' personal tokens. This reduces risk, simplifies payments, and enhances market creation by aggregating individual tokens into a more stable group currency that's easy to integrate into existing protocols.
By joining the Circles developer community, you can play a crucial role in building a more equitable and inclusive financial system. You can build applications, support developers, and invite more people to join your trust network.
Group Currencies
In addition to individual CRC currencies, Circles has introduced the concept of Group Avatars and Currencies. The idea behind Group currencies is to aggregate social-economic value amongst groups, without the geographical bounds of where groups are generated or created. Group avatar tokens can't be minted based on time, rather they depend on collateral deposits from trusted tokens.
Group participation operates through Circles' trust network rather than formal membership. To receive and accept group tokens, you need to trust the group address, which allows you to hold and transact with their tokens. The group, in turn, must trust the types of tokens it will accept as collateral for minting.
Group token minting is a permissionless process open to anyone holding tokens that the group trusts. When you want to mint group tokens, you deposit your trusted tokens (which can be personal CRC, other group tokens, or any Circles tokens) as collateral through the groupMint() function. The group mints new group tokens proportional to the collateral deposited, while your collateral tokens are held in the group's treasury.
This is not a direct swap but rather a collateralization mechanism - your original tokens remain in the group's treasury and can be redeemed later by burning group tokens through the groupRedeem() function. The current system allows minting based on any quantity of trusted Circles tokens you hold, not limited to personal CRC tokens.
The trust relationships work bidirectionally: you trust the group to accept their tokens, and the group trusts specific token types to accept them as collateral. This creates a flexible, decentralized system where group currencies can be backed by diverse collateral from across the Circles ecosystem, enabling economic coordination without geographic or membership constraints.
Circles protocol relies on the hub contract that you can utilize directly within applications. These deployed contracts exist on Gnosis Chain and are required by the SDK for configuration and initialization.
Here are the deployed addresses for V1 hub and V2 hub that you should consider for configuration or building tools on Circles protocol:
Contract Name
Deployed addresses
Hub contract
0xc12C1E50ABB450d6205Ea2C3Fa861b3B834d13e8
Name registry
0xA27566fD89162cC3D40Cb59c87AAaA49B85F3474
Migration contract
0xD44B8dcFBaDfC78EA64c55B705BFc68199B56376
Base mint policy
0xcCa27c26CF7BAC2a9928f42201d48220F0e3a549
If you want to skip directly to setting up Circles SDK in your application, you can jump to the SDK Configuration Guide which covers all the setup parameters.
Join the Technical Community
To collaborate with fellow developers, ask questions, and share your insights, join our technical community channels on Discord, GitHub, and other platforms.
An overview of different components of circles architecture.
A flow of architecture for Circles Protocol
Circles V2 Core Components
Inviting and accepting human avatars
Circles allows you to join the network as a human with a token ERC 1155 standard. You would have a profile and would require to be invited to join the network and start minting personal CRC token
Inviting a human to Circles
Now, your invitee can accept the invitation / register by:
Building with different Circles Avatars
An avatar represents a Circles user.
The SDK is built around the concept of avatars. An avatar is a Circles user and is used to interact with other Avatars.
New Circles users must sign up.
For existing Circles users, you can simply get exisiting avatars by address.
Get token balances of an avatar
You can use the avatar.balances helpers to read Circles balances with automatic v1/v2 handling. These methods rely on RPC only and work as soon as the SDK instance is initialized with a runner.
Get Total Balance
Automatically checks the correct hub version based on
Organization Avatars
In the Circles SDK, an Organization Avatar represents a non-human entity within the ecosystem. Unlike human or group avatars, it has distinct capabilities:
Cannot mint tokens
Can participate in the trust network
Managing group invites
Base groups “invite” members by trusting their personal avatars; members must also trust the group avatar to mint group tokens as collateral.
Invite a Member (Trust Them)
Trusting a member signals that the group will accept their personal token as collateral.
Supports profiles for organization
Unlike group avatars, organizations don't have membership conditions. Organizations are designed to represent entities that participate in the Circles economy without issuing their own currency.
Pathfinder
Finds liquid paths between two accounts in the trust network. These paths are used as input for the contract's transfer methods.
An ERC-1155 standard contract for registeration of
human,
groups and
organisation avatars.
Manages trust relations, minting of personal CRC tokens, group currencies and demurrage.
Migration Contract
Allows transition from Legacy V1 hub avatars to V2 hub. Migration will lock V1 CRC tokens, stop minting V1 tokens and convert into V2 tokens.
Name Registry
NameRegistry contract manages names, symbols and metadata for avatars (humans, groups, and organizations).
The name would be of 12 characters with a base58 encoding and store metadata for avatar profiles.
Base Mint Policy
Base mint policy is standard contract is utilized group registration. Once registered the policy address is immutable for the group address. This is a reference implementation for minting, burning and redeeming the group currencies and developers can build their own custom policies as well.
Vaults
Vaults is a factor contract that holds the personal CRC collateral against the group currencies. Every group, there is single vault to query balance. This contract is deployed by Standard treasury and is utilized during redemption of group circles token.
Standard Treasury
The Standard Treasury handles minting and redemption of group Circles by managing collateral transfers. It ensures collateral is forwarded to the correct vault based on structured data from the Hub contract. Additionally, it verifies data during redemption to release or burn collateral as specified by the group's mint policy.
Mint personal tokens
Human avatars accrue issuance continuously (capped at roughly 24 CRC per day) and expose helpers under avatar.personalToken:
const revokeReceipt = await groupAvatar.trust.remove('0xMemberAvatar');
console.log('Revoked member (trust removed):', revokeReceipt.hash);
Creating a new avatar
You will need a Metamask account with some xDAI to be able to interact with contracts and follow along the steps. Make sure you configured MetaMask with the correct ChainID (Gnosis Chain or Chiado) before you continue.
Manage trust connections
Trust determines which avatars will accept Circles issued by others. Circles SDK exposes avatar.trust helpers that batch safely (via Safe runner) or send single transactions (via EOA runners) while keeping expiry handling consistent and default under the hood.
Add Trust
Trusting an avatar means you are willing to accept Circles they issue, transfers from them or along paths that rely on them are allowed while the trust is active.
Passing an array batches all trust updates into one Safe transaction. EOA runners only support single addresses per call.
Remove Trust
Check Trust Direction
Inspect All Trust Relations
getAll() returns aggregated links where relation is one of:
trusts – avatars you trust.
trustedBy – avatars that trust you.
mutuallyTrusts – avatars where trust is bidirectional.
Fetching profile of an human avatar
This section is dedicated to handling/updating the profiles of an avatar.
Get a profile for the avatar
This function fetches the current profile associated with the avatar. If no profile exists, it will return undefined.
This function pins JSON to the Profiles service and updates the metadata digest on-chain. Returns the new CID.
If you already have your CID, you can use the function below to update the on-chain pointer:
Transfer personal Circles tokens to different avatar
You can use avatar.transfer utilities to reason about and send Circles with or without pathfinding.
Get Maximum Transferable Amount
Pathfinder-based max flow from your avatar to a recipient:
Computes the largest flow permitted by your trust graph and current balances.
Transfer CRC with Pathfinding
Selects routes through trusted avatars and wrapped tokens automatically.
Maximum transferable may be lower than your raw balance if trust is missing or tokens are locked in wrappers; check getMaxAmount first.
Direct Token Transfer (Specific Token)
Bypasses pathfinding; only works if you already hold the target token (personal ERC1155 or wrapped ERC20).
Provide a token address to send wrapped balances or omit to use your personal token.
Group Avatars
Group avatars are a type of avatar in the Circles ecosystem that represent collective entities rather than individual users.
Group Structure
Each group in Circles has:
A unique blockchain address (similar to individual avatars)
A specific type identifier
An owner who has administrative control
A treasury where tokens are stored
A mint policy that governs token creation
A name and symbol for its tokens
A membership system
Groups also maintain a count of their members and can store metadata via IPFS CIDs (Content Identifiers).
Groups support following CRC token operations:
Minting: Groups can mint their own tokens using collateral from members
Redemption: Members can redeem group tokens for the underlying collateral
Understanding purpose of Groups
Groups within the Circles ecosystem serve several important purposes:
Enabling Collective Economic Action: Groups allow multiple individuals to create shared economic entities with their own currencies, extending Circles beyond personal tokens.
Creating Community Currencies: Groups can mint their own tokens backed by collateral, allowing communities to create currencies tailored to their specific needs.
Pooling Resources: The group treasury system allows pooling of resources from members.
Managing trust connections via Org avatar account
Organizations use the same trust surface as humans. Trust determines which avatars’ Circles they accept and who can route transfers through them.
Trust Another Avatar
Default expiry is max uint96 (indefinite). Optionally pass an expiry timestamp (seconds since epoch).
Safe runners can batch: orgAvatar.trust.add(['0xA', '0xB'], expiry).
Remove Trust
Inspect Trust Direction
List All Trust Relations
relation is trusts, trustedBy, or mutuallyTrusts. Use this to identify who the org accepts and who accepts the org for routing and payments.
Find groups and memberships
You can use the RPC helpers on sdk.rpc.group to search for Base Groups and to fetch memberships for an avatar. These methods work with cursor-based pagination via PagedQuery.
Initialize RPC Access
Find Groups
Fetch groups with an optional filter and limit:
findGroups(limit, params?) pulls pages under the hood and returns up to limit rows.
Get Group Memberships for an Avatar
getGroupMemberships returns a PagedQuery; call queryNextPage() to iterate.
You can continue paging while currentPage?.hasMore is true.
Full Example
Creation of Organizations
Organizations join Circles without invitations and don’t mint personal tokens.
The SDK pins the profile to the Profiles service, converts the CID to a metadata digest, and calls hubV2.registerOrganization.
The returned OrganisationAvatar is ready for balances, transfers, trust, wrapping, group participation, etc.
Using an Existing Profile CID
The SDK fetches the profile to validate the name field before registering.
Circles SDK Overview
The is a TypeScript library that allows you to integrate Circles protocol into your dApp to implement avatars, profiles, token transfers and build trust connections for your use-case. Under the hood, Circles SDK utilizes deployed hub contracts on Gnosis Chain, pathfinder for finding trust network paths and profile service and Circles RPC.
Circles SDK :
To use the Circles sdk, install the primary npm package
Features:
Create Base Groups for your community
Base Groups are capable of following:
They can set membership conditions to define who can be part of the group
Setting up Circles SDK with React
Here is an example code on how you can setup Circles SDK with a front-end framework like React.
Getting total supply of group tokens available
Use balances.getTotalSupply() on avatars that expose a minted token (currently Base Groups).
Get Total Supply for a Base Group
Returns the ERC‑1155 total supply for the group’s token ID.
Past Hackathon Projects on Circles
Here are some of the past hackathon projects built with Circles. You can use these as a reference or to get inspiration of what kind of applications to build.
1. EthGlobal Brussels 2024
BraceBuddy allows to onboard easily and in a fun way people to the Circles ecosystem with NFC!
Woleth is an easy to use EVM wallet embed into Telegram designed to build a Social Graph utilizing Circle's invite mechanism.
import { Sdk } from '@aboutcircles/sdk';
import { CirclesRpc } from '@aboutcircles/sdk-rpc';
// Preferred: reuse the RPC client from an SDK instance
const sdk = new Sdk({ rpcUrl: 'https://rpc.aboutcircles.com' });
const rpc = sdk.rpc;
Collective Governance: Groups implement membership systems that can include conditions and expiry times.
Personal / Human Avatars
ERC-1155 standard avatars, which allows you to mint your personal Circles token (CRC) every hour, accumulating 24 CRC per day with an applied demurrage of 7%.
Group Avatars
Created by an owner, these avatars allow groups to trust human avatars within the group. Group tokens are utilized by collateralizing personal tokens, following the ERC-1155 standard.
Organization Avatars
As an organization, you are an avatar without any minting of new tokens. With your name and metadata file, which will be used for identification and can trust other avatars to receive Circles, with all owned Circles earned by avatars rather than minted.
import type { Profile } from '@aboutcircles/sdk-types';
const newProfile: Profile = {
name: 'Avatar Name',
description: 'Updated description for the avatar.',
avatarUrl: 'ipfs://QmYourImageCIDHere', // optional
};
try {
const newCid = await inviteeAvatar.profile.update(newProfile);
console.log('Profile updated. New CID:', newCid);
} catch (err) {
console.error('Error updating profile:', err);
}
If you call getTotalSupply() on a Human or Organisation avatar you’ll receive an unsupportedOperation error; use balance methods (balances.getTotal, balances.getTokenBalances) instead for those types.
import { Sdk, BaseGroupAvatar } from '@aboutcircles/sdk';
const sdk = new Sdk({ rpcUrl: 'https://rpc.aboutcircles.com' }, runner);
const avatar = await sdk.getAvatar('0xGroupAddress');
if (avatar instanceof BaseGroupAvatar) {
const totalSupply = await avatar.balances.getTotalSupply();
console.log('Total group token supply:', totalSupply.toString());
} else {
console.log('Total supply is only available for BaseGroup avatars.');
}
They can register short names with a nonce
They can trust avatars individually or in batches with condition checks.
Create a Base Group
sdk.register.asGroup wraps profile pinning, factory deployment, and address extraction.
The returned instance is a BaseGroupAvatar, ready for trust, membership, and admin actions.
Membership Management
Trust Management
Group Administration
You can also update metadata with groupAvatar.profile.update({...}), which pins a new CID and updates on-chain metadata via the group contract.
// Send your personal CRC directly (no pathfinding)
await avatar.transfer.direct('0xRecipient', BigInt(5e18));
// Send a specific wrapped token directly
await avatar.transfer.direct('0xRecipient', BigInt(5e18), '0xWrappedToken');
The Circles SDK let's you subscribe to protocol events. Either filtered for an avatar or as a complete stream. There is also a way to query all past events in a block range.
Subscribe
To subscribe, you need an initialized CirclesData class.
Then call the subscribeToEvents() method and supply the address of the avatar to subscribe to:
If you want to subscribe to all events, call it without parameter:
Query past events
If your client missed some events, you can query all events for a specific avatar in a block range.
You can omit the last parameter (toBlock) to query from fromBlock to the latest block:
Event types
The above methods yield CirclesEvents. All events have at least the following base properties:
$event: CirclesEventType One of the event types listed below
blockNumber: number In which block the event occurred
timestamp?: number When the event occurred
Here's a list of all event types. Please refer to the for the event properties.
Personal / Human Avatars
Circles SDK exposes human avatars through the HumanAvatar class, which implements the AvatarInterfaceV2 contract. Each instance wraps the Circles V2 hub contracts, profile service, and pathfinding helpers so apps can manage invitations, minting, trust, and transfers with minimal boilerplate.
Key Characteristics
Circles x Gnosis App Starter Kit
Annotating Circles transactions with arbitrary data and utilizing CrcV2_TransferData rpc method to build Gnosis App compatible payment links and QR codes with annotation.
This starter kit showcases a simple method for Circles transaction based data transfer: execute a transfer via Gnosis, then verify on-chain intent by polling Circles events for CrcV2_TransferData and matching recipient + data.
Using this any arbitrary data can now be annotated with Circles transactions.
The core idea is simple:
Wrapping and Unwrapping
Circles tokens (CRC) are primarily ERC‑1155 balances, but most DeFi tooling expects ERC‑20s. Wrapping converts CRC into ERC‑20 wrappers so you can reach AMMs, lending markets, or bridges while keeping Circles' properties.
Why wrap?
AMMs and routers typically accept only ERC‑20 tokens.
Query Circles profiles
💡 Query Circles Profiles
Retrieve user profile data using the Profiles Nethermind plugin. You can:
Create new user profiles
npm install @aboutcircles/sdk
@aboutcircles/sdk-transfers
Builds Circles SDK transfer payloads by combining pathfinding results with the data and RPC utilities needed to execute a transfer.
transactionIndex: number The index of the transaction in the block
logIndex: number The index of the log entry in the transaction
Invitation-based onboarding – every human avatar must be invited by an existing avatar that escrows 100 CRC via avatar.invite.send.
Profile-backed identities – v2 humans always reference an IPFS CID (pinned through the Profiles service) that stores metadata such as name, description, and media URLs.
Personal token minting – humans accrue up to 24 CRC per day and can mint accumulated issuance via avatar.personalToken.mint.
Trust graph participation – avatar.trust.add/remove/isTrusting manages bilateral trust needed for pathfinding and transfers.
Transfer orchestration – avatar.transfer.direct and avatar.transfer.advanced support both direct CRC transfers and multi-hop, wrapped-balance flows.
AvatarRow Data
Human avatars retrieved from Sdk#getAvatar or CirclesRpc.avatar.getAvatarInfo surface an AvatarRow payload. V2 humans are tagged with CrcV2_RegisterHuman events and look like:
avatar / tokenId – human avatars use their address as the ERC‑1155 token id.
cidV0 – IPFS CID pointing to the profile JSON; cidV0Digest is the on-chain metadata digest.
hasV1 – indicates whether the address has a legacy v1 identity that can still be migrated.
timestamp, blockNumber, logIndex – useful for freshness checks or historical queries.
Creating V2 Human Avatars
Invite the new human – the inviter uses an existing HumanAvatar (fetched via Sdk#getAvatar) and escrows 100 CRC:
Register / accept invitation – the invitee calls sdk.register.asHuman. Pass either an existing CID or a Profile object; the SDK auto-pins profile objects to the Circles profile service before registering with the hub.
Working With Profiles
avatar.profile.get() – fetches and caches the IPFS JSON referenced by cidV0.
avatar.profile.update(profile) – pins new metadata and updates the NameRegistry digest; useful for avatar name/description/image changes.
sdk.register.asHuman(inviter, profileOrCid) – automatically uses the Profiles service when a plain object is supplied, so invitees do not need prior CID knowledge.
Trust & Transfers
Establish trust through avatar.trust.add('0xFriend...', expiry?), remove trust via avatar.trust.remove, and inspect relationships using avatar.trust.getAll() or avatar.trust.isTrusting.
Transfer CRC with avatar.transfer.direct('0xRecipient...', 25n * 10n ** 18n) for simple paths, or avatar.transfer.advanced to opt into wrapped balances, token filters, or encoded metadata.
Replenish personal (unwrapped) CRC by converting wrapped holdings with avatar.balances.replenish(); the SDK uses the pathfinder to determine the optimal flow back to the avatar’s personal token.
Lending/borrowing markets need ERC‑20 collateral and debt assets.
Bridges and cross‑chain tools usually whitelist ERC‑20s.
Wrapper choices
Demurraged (decaying): Keeps Circles' time‑based decay. Wrapped balances shrink as demurrage accrues. Use when external protocols should still respect Circles' economics.
Inflationary/static: Balance stays fixed for ERC‑20 compatibility. Use for AMM liquidity, lending collateral, or bridging where decay would break integrations.
Wrapping via avatar.wrap
Transactions require a configured runner (EOA or Safe) with the SDK.
Demurraged ERC‑20
Deploys (or reuses) a demurraged ERC‑20 wrapper for the avatar’s CRC and transfers the specified amount into it.
Inflationary/static ERC‑20
Creates or fetches a static ERC‑20 wrapper so balances never decay while wrapped.
Unwrapping back to ERC‑1155
Pass the ERC‑20 wrapper contract address you received (via the helper above or your own tracking).
Demurraged unwrapping
Demurrage continues while wrapped; the redeemable amount may be lower than what was deposited.
Static wrapper unwrapping
Balances are static while wrapped; unwrapping returns the same amount of CRC.
Note:
Pick demurraged wrappers to preserve Circles' economic incentives in external protocols; pick static wrappers for maximal ERC‑20 compatibility.
You can wrap any ERC‑1155 Circles token you hold—not just your personal token—by passing its avatar address to asDemurraged or asInflationary.
Store or fetch wrapper addresses for DeFi integrations; use sdk.core.liftERC20.erc20Circles(type, avatar) to look them up after deployment.
Search existing profiles using parameters such as:
Name
CID (Content Identifier)
Description
Wallet Address
1. Create a Profile (POST request)
2. Get a Profile by CID (GET request)
3. Get Multiple Profiles by CIDs (GET request)
4. Search Profiles by Name (GET request)
5. Search Profiles by Description (GET request)
6. Search Profiles by Address (GET request)
7. Search Profiles by CID (GET request)
8. Search Profiles with Multiple Criteria (GET request)
It computes candidate representations for the target string and attempts reverse decode (hex -> utf8) on event payloads. This reduces false negatives when wallet/indexer pipelines emit different encodings for semantically identical content.
Proper encoding and decoding standards will also be introduced soon for different data types.
Polling Loop and State Machine
usePaymentWatcher(...) executes recursive polling with timeout scheduling:
Starts only when enabled && dataValue && minAmountCRC.
Sets state to waiting before each probe.
Calls checkPaymentReceived(...).
On hit: stores event, sets confirmed, stops polling.
On exception: stores message, sets error, keeps control explicit.
On cleanup: cancels loop and clears timeout.
Default interval is 5000ms; this is configurable via intervalMs.
The important field is data. For production, use structured unique values (order:<uuid>, invoice:<tenant>:<id>) to avoid ambiguous confirmations.
This way we can implement Gnosis App integrated payments utilizing Circles.
Here is a simple fun game utilizing the above discussed features:
Pathfinder
Circles pathfinder calculates “how much and through which tokens can flow from A to B” based on trust and balances (wrapped and unwrapped). You can use it to:
Preview a route and achievable amount.
Feed TransferBuilder or custom operateFlowMatrix calls.
Token pinning/bans: Use fromTokens/toTokens to force specific personal or group tokens; use the exclude* variants to forbid costly or undesired wrappers.
From path to execution
Easiest: call TransferBuilder.constructAdvancedTransfer(from, to, amount, options)—it runs findPath, adds unwrap/rewrap, approvals, and returns an ordered tx array.
Manual: convert PathfindingResult to operateFlowMatrix:
Pathfinder helper functions (when you build flows yourself)
createFlowMatrix(from, to, maxFlow, transfers) – turns a PathfindingResult into flowVertices, flowEdges, streams, packedCoordinates for hubV2.operateFlowMatrix.
Error handling & tips
maxFlow === 0: check mutual trust or unwrap static/demurraged balances back to ERC1155.
Paths needing wrapped balances will fail unless useWrappedBalances is true.
Utilising CirclesQuery Class
The CirclesQuery class allows you to execute custom queries against the Circles RPC api.
The previously shown CirclesData class returns CirclesQuery<T> objects for all paged query results. You can execute custom queries against all tables in the Circles index and filter with them.
Write a query
First you'll need to define a query. The basic structure of a query is the same as for a basic SQL select. It has the following fields:
namespace: Used to distinguish between tables and views as well and to tell the tables of the two Circles version apart from each other.
table: The name of the table you want to query.
columns: A list of column names you want to select.
Check out the documentation of the for a list of tables.
Here is a query that reads all avatars with type group. Other avatar types you can try are human and organization.
If you want to be able to load the next page (queryNextPage()) you must always include the following fields in your query:blockNumber, transactionIndex, logIndex.
Define a row type
You can define a type for the rows of your query, or just go with any if the type doesn't matter.
If you want to specify a custom type, it must extend the EventRow type. The EventRow type contains the blockNumber, transactionIndex and logIndex fields which are required for pagination.
Execute the query
To execute the query definition, you'll need a CirclesRpc instance. Create one and pass the Circles rpc url to the constructor.
Then create a CirclesQuery<MyGroupType> instance.
Call getNextPage() to retrieve the first page of the result set. You can then access the results through the currentPage property. This property includes the results themselves, along with firstCursor, lastCursor, limit, size, and sortOrder.
Add computed columns
You can extend the CirclesQuery with computed columns. Computed columns are defined by a callback that takes in the row and returns a new value. Here we convert the value of the previously queried cidV0Digest field (which is originally a hex-string) to a CID in Qm.. format.
The new column should be added to the custom type.
Then you can execute the query just like you did before. The calculated column function will be executed for each row in a page.
Circles Tools
Circles Tools is acollection of useful tooling for the community. These tools can be used as an extension to the circles core app for niche, specific and advanced usecases.
Here is a detailed list of tools, you can currently use:
Group Checker
This tool displays detailed information about Circles group memberships and token balances. It can fetch on-chain data like ERC20 supplies, fees, and balances using a smart contract and direct links to relevant explorers and swap platforms.
Group Creator
This tool allows users to create Circles groups with customizable metadata and membership conditions. It supports input of service address, group name, symbol, and optional initial trust conditions for setup.
Group Manager
This tool enables group owners to manage and update their Circles group contracts directly from the browser. Owners can view contract details, add or remove trusted members, and modify settings like service or fee collection addresses.
Profile Checker
This tool provides a detailed overview of any address’s Circles v1 and v2 profile details like profile data, token balances, trusted relationships, and live ERC20 prices, including bot classification and expiry info.
Safe State & Tx Hash Checker
This tool allows users to inspect the state of a Gnosis Safe (owners, threshold, nonce) and compute a Safe transaction hash with full control over parameters like gas settings, operation type, and calldata. It also includes an interactive function encoder to help generate calldata from ABI inputs, and shows the full execTransaction calldata when approvals meet the threshold.
Trust Graph Visualizer
This tool visualizes the web of trust relationships in the Circles ecosystem using an interactive force-directed graph. It supports avatars, PageRank-based trust scores, dynamic expansion (recursive and top-ranked), and rich filtering (Humans, Groups, Orgs).
Users can explore any address, see stats and trust rankings in a sortable table, and view incoming/outgoing trust via tooltips and double-click expansion.
Trust Path Visualizer
This advanced visualization tool helps users explore trust flow paths between two Circles addresses using an interactive Sankey diagram.
It calculates on-chain trust paths for a given Circles token transfer amount, retrieves real-time token supply capacities, and visualizes flow bottlenecks.
It’s ideal for understanding how CRC tokens route across trust relationships and for debugging why a transfer may or may not succeed.
Personal CRC Replenisher
This tool lets Circles users replenish their own CRC token balance by routing it through the trust network back to themselves.
It calculates the maximum amount you can send to yourself using existing trust paths, and builds a transaction to call operateFlowMatrix on the Circles Hub.
Circles Backing dApp
This tool allows users to back their Circles tokens (CRC) with real-world assets like WBTC, WETH, GNO, or sDAI through a Safe-based flow on Gnosis Chain. It supports both Safe Apps and MetaMask wallet connections, computes a deterministic CirclesBacking contract address for any given Safe, registers appData with CowSwap to enable post-swap hooks, and guides the user through submitting two required transactions: approve() USDC.e to the factory and safeTransferFrom() CRC tokens via Hub V2.
LBP Starter
This tool helps users easily create and manage Liquidity Bootstrapping Pools (LBPs) using their Circles tokens. It allows local groups or organizations to launch an LBP by selecting a group token (CRC), choosing a paired asset (like sDAI or GNO), specifying the amount of each token, and optionally configuring advanced parameters such as weight curves, swap fees, and duration. It also supports reloading or continuing with existing LBP contracts for inspection or finalization.
Token Distribution Checker
This is an analytics tool for exploring the distribution of ERC-1155 Circles tokens. It allows users to input any Circles-compatible token address and fetch a full breakdown of its holders using the Circles Hub RPC API. The tool visually presents token holdings using a pie chart (with custom legends), paginated data tables, and balance percentages per holder. Each address is enriched with profile names (if available), explorer links, quick copy buttons, and the ability to recursively check other token distributions. Users can export the full dataset as CSV, verify the raw API data via a debug panel, and dynamically navigate token ownership. This tool is ideal for community organizers, protocol designers, or auditors who want transparency and insight into token spread, supply concentration, and holder identity.
Legagacy Circles Safe Creator
This tool is designed to help users deploy a Gnosis Safe (v1.1.1) contract instance with a single owner, tailored for legacy use within the Circles ecosystem. By connecting a MetaMask wallet, users can specify any valid Ethereum address as the owner and generate a new Safe contract using a proxy factory and master copy on Gnosis Chain. The tool handles address validation, transaction submission, and post-deployment verification to confirm that the specified address was correctly set as the owner of the Safe. It is especially useful for onboarding Circles users who need a compatible Safe to manage CRC tokens and interact with legacy dApps.
Onboarding Helper
This tool allows people to easily join a Circles group by scanner a QR code.
Equilibrium Analaysis
This tool provides a dynamic view into market efficiency and arbitrage activity within the Circles economy. It visualizes the moving average of arbitrage profit opportunities over time—expressed in USD—based on configurable time windows, helping identify trends in CRC market imbalances. Simultaneously, it offers a price equilibration analysis by showing the distribution of price spreads between liquid CRC token pairs, flagging deviations from parity using customizable thresholds, liquidity filters, and deviation types (absolute or relative). Together, these insights help traders, analysts, and protocol maintainers detect inefficiencies, monitor arbitrage potential, and assess the overall health of price discovery in the Circles ecosystem.
This is an advanced visualization and simulation tool that computes and displays optimal token transfer paths through the Circles network graph. Users can specify a source address, destination address, and CRC value, along with custom token inclusion filters for both sender and receiver. The tool supports optional wrapped token inclusion and lets users configure visual and performance parameters—such as edge curvature, capacity gradients, node/edge labels, and tooltip details—for clarity and analysis. Upon clicking “Find Path,” the graph engine simulates feasible routes, showing flow capacity and rendering performance in real-time. This makes the Pathfinder useful for debugging trust routes, analyzing payment viability, and exploring how CRC tokens can move through the social trust graph, especially in complex multi-hop scenarios.
npm install
npm run dev
{
"jsonrpc": "2.0",
"id": 1,
"method": "circles_events",
"params": [
"<recipient-or-cursor-or-null>",//We can also add other params like fromBlock, toBlock, etc
null,
null,
["CrcV2_TransferData"]
]
}
Circles avatars are ERC‑1155 tokens whose metadata field points to an IPFS CID. The JSON stored at that CID contains the human-friendly profile (name, description, images, etc.) that explorers and UIs render. @aboutcircles/sdk exposes helpers on every avatar instance, while @aboutcircles/sdk-profiles provides you a lightweight client for direct pin/get calls.
Profile Data Model
The profile payload mirrors the Profile interface from @aboutcircles/sdk-types, and the Circles profile service enforces the same shape when accepting uploads.
Field
Type
Notes
Required
For groups, GroupProfile extends Profile with a required symbol property so downstream tools can display the token ticker alongside other metadata.
Creating & Pinning Profiles
The SDK automatically creates a Profiles client using the profileServiceUrl from circlesConfig. You can call it directly when building forms or admin panels:
If you already know the CID (for example, you pinned it off-chain), you can fetch it later via await sdk.profiles.get(cid) or through any avatar instance using await avatar.profile.get().
Updating On-Chain Metadata
For avatars you control:
Pin the JSON: const cid = await avatar.profile.update(profileData);
The helper converts the CIDv0 into the bytes32 digest (cidV0ToHex) and submits nameRegistry.updateMetadataDigest.
Subsequent reads pull the updated profile, and you can register short names via
You can also skip the pinning step when you already have a CID:
Group Profiles and Registration
Group metadata uses the same pinning flow, but the registration step also needs the group symbol and deployment parameters for the BaseGroup factory. The SDK’s register.asGroup helper wraps all of that:
register.asGroup pins the groupProfile, deploys the BaseGroup via core.baseGroupFactory, extracts the new group address from the BaseGroupCreated event, and returns a BaseGroupAvatar wired to your runner.
Preview Image Requirements
When you embed an image as previewImageUrl, the profile service enforces a few constraints to keep responses lightweight:
Format: PNG, JPEG, or GIF.
Dimensions: exactly 256×256 pixels.
File size: ≤ 150 KB after compression.
Here’s a browser-friendly helper that crops and compresses user uploads before pinning:
Profiles that violate those constraints are rejected by the pinning service, so validate on the client and surface helpful errors to your users.
Reading Profiles Back
Via avatars:await avatar.profile.get() pulls and caches the current metadata, while avatar.profile.update handles write flows.
Via RPC:CirclesRpc.avatar.getAvatarInfo includes the cidV0 so you can fetch profile blobs without instantiating an avatar class.
Because the CID is stored on-chain, any tool that knows the avatar address can look up its metadata by combining RPC data with the profile service.
Query Circles Data
The CirclesData class provides an easy-to-use selection of common queries that are suitable for most use cases.
Initialization
Most of the previously shown avatar methods internally use the CirclesData class with filters for the current avatar address. If you already have a configured Sdk instance, you can use the sdk.data property to access the class:
Otherwise you can also create an instance like this:
Get avatar info
The getAvatarInfo(avatar: string): Promise<AvatarRow | undefined> method finds basic information about an avatar. This includes the signup timestamp, circles version, avatar type (human, organization or group), and token address/id as well as it's profile CID (if any).
Get token info
The getTokenInfo(tokenId: string): Promise<TokenInfoRow | undefined> methods finds basic information about a Circles token. This includes the creation timestamp, circles version, token type (human or group) and the address of the avatar that created the token.
Get total balance (v1, v2)
The total Circles balance of an avatar is the sum of all it's personalized and group token holdings. It can be queried with the getTotalBalance(avatar:string): Promise<string> method. There is a separate method for each Circles version.
The methods have a second, optional parameter asTimeCircles?: boolean = true that controls the return value format. The default value (true) returns a floating point number as a string, while false returns a bigint number as a string. If you want to use the value for calculations you need to parse them.
Get detailed token balances (v1, v2)
In contrast to the above method, the getTokenBalances(avatar: string): Promise<TokenBalanceRow[]> method gives a detailed overview of an avatar's Circles holdings. As with the method above, this one also exists for both versions of the Circles protocol.
The result row contains the token, balance and the tokenOwner.
The methods have a second, optional parameter asTimeCircles?: boolean = true that controls the return value format. The default value (true) returns a floating point number as a string, while false returns a bigint number as a string. If you want to use the value for calculations you need to parse them.
Get transaction history
The getTransactionHistory(avatar: string, pageSize: number): CirclesQuery<TransactionHistoryRow> method can be used to query all incoming and outgoing Circles transfers from and to an avatar. This includes minting and transfers of personal and group Circles for v1 and v2.
The result rows have the following properties:
timestamp When the transaction happened
transactionHash
version If the transaction happened in Circles v1 or v2
The results are ordered in descending order.
Get trust relations
The getTrustRelations(avatar: string, pageSize: number): CirclesQuery<TrustListRow> method can be used to query the effective trust events for an avatar. Already expired or removed trust relations are omitted from the results.
The results of this method contain one row per incoming or outgoing event. This is useful when you need to know when a relation was established. However, if you just want to display a contact list you should consider using getAggregatedTrustRelations(avatarAddress: string): Promise<TrustRelationRow[]> instead.
Get aggregated trust relations
In contrast to the above method, this method queries all relevant trust events and groups mutual trust events into a single row instead of one for each direction.
The result rows have the following properties:
subjectAvatar The acting avatar
relation The relation between the acting avatar and the one it's related to
objectAvatar The other avatar
The possible relations are: trusts, trustedBy, mutuallyTrusts, and selfTrusts. The last one (selfTrusts) exists because, in Circles, every avatar trusts itself.
Find groups
Circles groups have a name and symbol that's stored on-chain. You can use the findGroups(pageSize: number, params: GroupQueryParams): CirclesQuery<GroupRow> method to find groups by name or symbol.
The params parameter can be used to filter and order the result set by the name and symbol of a group.
Use the method as following:
If an avatar is member at a group (as defined by a trust relation from the group to the avatar), it's usually eligible to mint tokens of that group.
Get group memberships
You can query the group memberships of an avatar using the getGroupMemberships(avatar: string, pageSize: number): CirclesQuery<GroupMembershipRow> method to get a list of all groups an avatar is a member of.
The result rows contain the following properties: group, member, expiryTime.
If you want to query the details of the returned groups, you can pass the group addresses into the groupAddressIn filter field of the findGroups() method.
Get invited users
Avatars can invite others to join Circles. The getInvitations(avatar: string, pageSize: number): CirclesQuery<InvitationRow> method returns a list of invitations sent by the specified avatar.
Th e result rows contain the follwing properties: timestamp, transactionHash, inviter, invited.
Get invited by
You can query who invited an other avatar by calling getInvitedBy(avatar:string): Promise<string|undefined>. If the avatar wasn't invited, the method returns undefined.
Glossary
This glossary contains terms and definitions used throughout the Circles documentation.
ERC-1155
ERC-1155 is an Ethereum token standard that enables the efficient transfer and bundling of multiple fungible and non-fungible tokens in a single transaction. This multi-token standard allows for the creation of complex token systems, such as those used in gaming or supply chain management, where different types of tokens need to be managed simultaneously.
The standard introduces a new set of functions, including safeTransferFrom, safeBatchTransferFrom, and balanceOfBatch, which allow for the transfer and querying of multiple token balances in a single call. This reduces gas costs and simplifies token management compared to using multiple ERC-20 or ERC-721 contracts.
ERC-1155 tokens are identified by a unique combination of an address and an ID, allowing for the creation of an unlimited number of token types within a single contract. The standard also includes an optional metadata extension, enabling developers to associate additional information, such as images or descriptions, with each token type.
See also:
Externally-Owned Account
An externally-owned account (also known as EOA) is one of the two types of Ethereum accounts. A private key controls it; it has no code, and users can send messages by creating and signing Ethereum transactions.
See also:
on ethereum.org
on ethereum.org
Gasless Transaction
Gasless transactions (also known as meta-transactions) are Ethereum transactions that are executed by a third party called on behalf of a to abstract the use of gas. Users must sign a message (instead of the transaction itself) with information about the transaction they want to execute. A relayer will create the Ethereum transaction, sign and execute it, and pay for the gas costs. The main benefit is that users can interact with the blockchain without holding the native token in their account.
See also:
on docs.safe.global
Network
A blockchain network is a collection of interconnected computers that utilize a blockchain protocol for communication. Decentralized networks allow users to send transactions, that are processed on a distributed ledger with a consensus mechanism ensuring the batching, verification, and acceptance of data into blocks. This structure enables the development of applications without the need for a central authority or server.
See also:
on ethereum.org
Owner
A Safe owner is one of the accounts that control a given Safe. Only owners can manage the configuration of a Safe and approve transactions. They can be either or . The of a Safe defines how many owners need to approve a Safe transaction to make it executable.
See also:
on github.com
Relayer
A relayer is a third-party service acting as an intermediary between users' accounts and . It executes transactions on behalf of users and covers the associated execution costs, which may or may not be claimed.
See also:
on docs.gelato.network
Safe Wallet
Safe is a smart contract wallet that requires a minimum number of people to approve a transaction before it can occur (M-of-N). If for example you have 3 main stakeholders in your business, you are able to set up the wallet to require approval from 2 out of 3 (2/3) or all 3 people before the transaction is sent. This assures that no single person could compromise the funds.
See also:
Smart Account
A smart account (also known as a smart contract account) leverages the programmability of smart contracts to extend its functionality and improve its security in comparison with . Smart accounts are controlled by one or multiple externally-owned accounts or other smart accounts, and all transactions have to be initiated by one of those.
Some common features that smart accounts offer to their users are:
Multi-signature scheme
Transaction batching
Account recovery
Safe is one of the most trusted implementations of a smart account.
Transaction
A transaction is an action initiated by an to update the state of the EVM network. Transaction objects must be signed using the sender's private key, require a fee, and be included in a validated block.
A Safe transaction is a transaction sent to a Safe Proxy contract calling the method.
See also:
on ethereum.org
Threshold
The threshold of a Safe account is a crucial configuration element that enables using Safe as a multi-signature smart account. It defines the number of required confirmations from the Safe owners a (Safe) transaction must have to be executable.
See also:
and of a Safe with the Safe{Core} SDK on docs.safe.global
Wallet
A wallet is an interface or application that gives users control over their blockchain account. Wallets allow users to sign in to applications, read their account balance, send transactions, and verify their identity.
See also:
on ethereum.org
Circles SDK interface
Sdk class
Constructor: new Sdk(config?: CirclesConfig, contractRunner?: ContractRunner)
config defaults to circlesConfig[100] (Gnosis)
contractRunner required for any state-changing call (see ContractRunner below)
const avatarInfo = await data.getAvatarInfo("0x...");
if (avatarInfo) {
console.log("Avatar is signed up at Circles");
} else {
console.log("Avatar is not signed up at Circles");
}
const tokenInfo = await data.getTokenInfo("0x...");
if (tokenInfo) {
console.log("Token is a Circles token");
} else {
console.log("Token is not a Circles token");
}
This guide explains how to use the latest @aboutcircles packages to build a browser-ready Circles dApp. Follow the steps to move from wallet prerequisites to a fully initialised Sdk instance capable of handling avatar reads, trust writes, transfers, profile updates, and the auxiliary helper surfaces exposed in v2.
1. Prerequisites
Browser wallet such as MetaMask or Rabby.
Gnosis Chain (chain ID 100) configured inside the wallet. Double-check the RPC endpoint, currency symbol (xDAI), and block explorer entries via the .
A small amount of xDAI for gas (available from the ).
Keep the wallet unlocked in the same browser context that will load your dApp so the runner can interact to window.ethereum.
2. Install the Circles SDK Packages
Install whichever modules you plan to import directly. @aboutcircles/sdk already depends on the others, but pinning them in your app keeps the versions aligned across bundlers.
@aboutcircles/sdk-core – typed contract wrappers plus circlesConfig.
@aboutcircles/sdk-types
3. Import the SDK Building Blocks
Sdk is the primary entry point exposing avatar namespaces (balances, trust, transfer, profile, etc.).
Core/circlesConfig provide production-ready contract addresses, service URLs, and default RPC endpoints.
Need multisig support? @aboutcircles/sdk-runner exports SafeContractRunner (backend) and SafeBrowserRunner (front-end Safe Apps). Swap your custom runner with those when you integrate Safe-based flows.
4. Choose the Right Network Configuration
Production (Gnosis Chain Mainnet)
This object already contains:
Service URLs: circlesRpcUrl (aggregated Circles RPC), pathfinderUrl, and profileServiceUrl.
An EOA runner is ideal for MetaMask/Rabby-style single-signers. The snippet below shows a minimal implementation that satisfies the ContractRunner interface with the help of viem:
Key behaviors:
init() requests wallet access and enforces the correct chain ID before any on-chain action.
sendTransaction() loops through every TransactionRequest emitted by avatar helpers or TransferBuilder, ensuring multi-step flows (pathfinding, wrapped transfers, etc.) complete in order.
Prefer a Safe-based UX? Replace the custom runner with SafeBrowserRunner.create(rpcUrl, window.ethereum, safeAddress, gnosis) (or the server-side SafeContractRunner) from @aboutcircles/sdk-runner. Both satisfy the same interface.
6. Tap Into Lower-Level Packages
When you need extra control—analytics dashboards, dry-run tooling, custom transfer flows—instantiate the underlying modules alongside the Sdk:
Core returns raw transaction requests for HubV2, BaseGroups, Lift ERC-20 wrappers, etc.
CirclesRpc streams balances, trust graphs, profile search results, and transaction history straight from the Circles indexers.
Reuse the same config everywhere to avoid mismatched service URLs.
7. Initialise the Circles SDK
Passing circlesConfig[100] explicitly removes any ambiguity about the targeted environment.
Provide your custom (or Safe) runner so avatar helpers can sign and broadcast state-changing transactions. If you leave the runner undefined, the SDK functions remain read-only.
sdk.data exposes RPC-backed helpers for avatars, trust, and balances when you do not need a full avatar instance.
8. End-to-End Setup Example
This pattern maps cleanly to a React useEffect, a Next.js server action (with a server-side runner), or a plain script.
9. Choosing SDK Surfaces
Pick the surfaces that match your UX:
HumanAvatar / OrganisationAvatar / BaseGroupAvatar – mint issuance, manage trust, transfer CRC, wrap/unwrap, and maintain profiles with type-specific helpers.
sdk.register – onboard new humans, organisations, and base groups while handling invitation escrows and profile pinning.
sdk.data – lightweight RPC views for trust graphs, balances, and avatar metadata (great for dashboards).
Decide which combos your application needs up front so you can import only the modules you plan to expose.
Mint group tokens
Mint Base Group tokens by sending collateral through the trust graph to the group’s mint handler. The groupToken helpers on HumanAvatar and OrganisationAvatar handle pathfinding and wrapped balances automatically.
@aboutcircles/sdk-runner – production runners (SafeContractRunner, SafeBrowserRunner) and error helpers.
@aboutcircles/sdk-rpc – typed JSON-RPC client for balances, trust graphs, pathfinding, transactions, and events.
@aboutcircles/sdk-transfers – TransferBuilder orchestration around pathfinding + wrapper management; it leans on…
@aboutcircles/sdk-pathfinder – utilities for flow matrices, wrapper lookups, and path manipulation.
@aboutcircles/sdk-profiles – profile pinning client that the SDK uses internally for metadata updates.
viem – RPC + wallet tooling shared by the runner implementations.
ContractRunner defines the interface your signing strategy (EOA, Safe, hardware wallet, …) must satisfy.
CirclesRpc, TransferBuilder, and Profiles are optional direct imports when you need to bypass the high-level helpers (analytics views, offline tooling, custom flows).
viem primitives make the runner portable across browser wallets and Node environments.
,
baseGroupFactoryAddress
,
baseGroupMintPolicy
,
standardTreasury
,
coreMembersGroupDeployer
, and
liftERC20Address
.
Metadata used internally by TransferBuilder, CirclesRpc, and the avatar helpers (so you rarely need to hard-code addresses).
Gas estimation, read-only calls, and ENS resolution are delegated to viem so you do not need to reinvent RPC plumbing.
to create the ordered transaction list (unwraps, approvals,
operateFlowMatrix
) without sending anything.
Profiles is handy for batch jobs or when you want to pin metadata outside of the avatar helpers.
sdk.tokens contains convenience helpers for wrappers and token-holder pagination.
sdk.groups helps explore group treasuries, membership lists, and holder breakdowns without writing direct RPC calls.
sdk.profiles offers direct create/get helpers powered by @aboutcircles/sdk-profiles.
sdk.tokens – wrapper lookups plus cursor-based holder queries for ERC1155/ERC20 representations.
sdk.groups – fetch group members, treasury balances, and holder distributions without juggling contracts manually.
sdk.profiles – talk to the profile service directly when you need to pin/update metadata outside avatar flows.
import { Sdk } from '@aboutcircles/sdk';
import { Core, circlesConfig, type CirclesConfig } from '@aboutcircles/sdk-core';
import type { ContractRunner } from '@aboutcircles/sdk-types';
import { createPublicClient, createWalletClient, custom, http } from 'viem';
import { gnosis } from 'viem/chains';
// Optional modules for lower-level access when you need them
import { CirclesRpc } from '@aboutcircles/sdk-rpc';
import { TransferBuilder } from '@aboutcircles/sdk-transfers';
import { Profiles } from '@aboutcircles/sdk-profiles';