City Protocol SDK
TypeScript clients for integrating City Protocol wallets, funding, swaps, lending, vaults, portfolio data and AML screening.
The City Protocol SDK (@cityprotocol/core) is the builder-facing integration layer for City Protocol. It sits between your product and the underlying provider stack, so your team can offer wallets, funding, swaps, lending, vaults and screening without wiring each provider together independently.
What your team owns
Your product keeps its own logic. Your team owns:
the user experience;
the customer, account and ledger models;
policy, permissions and support operations;
how financial capabilities are packaged into your product.
The integration model
A typical City Protocol integration has three layers: your product, the City Protocol SDK with the City Protocol-managed backend flows, and the upstream providers and protocols.

Recommended architecture
For production, default to backend-first:
The frontend collects user intent and renders the interface.
The frontend calls your backend.
Your backend calls the City Protocol SDK clients.
Your backend stores state, enforces policy and processes asynchronous updates.
The frontend renders normalized results.
Module map
Suggested rollout order
Most teams integrate in this sequence:
wallet and account identity;
funding and money movement;
swaps, lending, vaults and portfolio features.
Start with Get started.
Last updated