Built in 2023
Unbanked Asset Plug-in System
Asset Integration Framework
Thanks to a framework that I proposed and implemented to facilitate the incorporation of new assets, we were able to significantly reduce the time required for token integration from 2 weeks to mere minutes. This valuable capability had a positive impact on more than 30,000 KYC-verified users and 8 programs, and it generated an additional $1.2 million in revenue for the company through B2B partnerships.
Made with
Links
Every time we added a new cryptocurrency token, it took two weeks. Two weeks of custom code, manual testing and difficult deployments. It slowed down the business and frustrated our partners.
I proposed a different approach. What if adding a token only meant adding a configuration file?
Two weeks per token
Unbanked supported many blockchains: Ethereum, Polygon, Solana and more. Each chain had its own quirks. Different APIs. Different transaction formats. Different ways to check balances.
For each new token, an engineer had to write custom code. They had to learn that blockchain, handle its edge cases and test everything by hand. Then they had to deploy it without breaking the existing tokens.
That took about two weeks per token, sometimes longer.
Our B2B partners wanted to add their own tokens. They did not want to wait two weeks. Neither did we.
Same actions, different chains
I designed a plugin architecture that hides the differences between blockchains. The key idea was simple. Most tokens do the same things. They have balances. They can be transferred. They have decimal places.
The differences are in how you talk to the blockchain, not in what you do.
So I built a system where each blockchain becomes a “provider.” Each token becomes a configuration that points to a provider. Adding a new token means writing a JSON file, with no custom code.
Three layers
The architecture has three layers:
- Blockchain providers. Each blockchain has a provider class. It knows how to connect to nodes, fetch balances and create transactions. Ethereum uses ethers.js. Solana uses @solana/web3.js. The provider handles all the low level details.
- Token adapters. Every token follows a common interface: get the balance, get the decimals, create a transfer. The adapter turns these generic operations into calls for a specific blockchain.
- Configuration files. Each token is a JSON file. It names the blockchain, the contract address, the decimals and any special parameters. It is data, not code.
When the system starts, it loads every configuration file and creates the right adapters. Nothing else is needed.
Hiding blockchain differences
This was the hard part. Blockchains really are different. Ethereum uses gas to price work. Solana uses compute units. Some tokens are smart contracts. Others are native assets of their chain.
I created one transaction model for all of them. Every operation returns the same structure. The adapter does the translation inside. The rest of the application does not care which blockchain it is talking to.
For balance queries, I built a caching layer. Chains take different amounts of time to reach finality, the point where a transaction cannot be reversed. The cache respects those differences and still gives the application one consistent API.
Errors were tricky too, because each blockchain fails in its own way. I grouped errors into categories: insufficient funds, network issues and invalid addresses. The application can handle an error without knowing the blockchain behind it.
A token in one file
Here is what adding a new ERC-20 token looks like now:
{
"name": "USDC",
"symbol": "USDC",
"blockchain": "ethereum",
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"decimals": 6,
"type": "erc20"
}
That is all. No code changes. No deployments. The system picks it up on its own.
For more complex tokens, the configuration supports custom parameters, such as fee structures, special approval flows and multi-sig requirements. All of it is configurable.
We built a validation system that checks every configuration before it goes live. A wrong contract address, invalid decimals or an unsupported blockchain gets caught right away.
From two weeks to minutes
Integration time dropped from two weeks to minutes. Really, minutes.
That changed what we could offer. When a B2B partner wanted their token, we could say yes right away. No engineering sprint was needed.
Eight programs run on the plugin system. More than 30,000 KYC verified users get new features faster because of it. KYC (know your customer) means their identity was checked. B2B partnerships built on it brought $1.2 million in additional revenue.
Partners who would have gone elsewhere stayed with us. They could launch their token programs the same day they signed the contract.
What the plugins taught me
Abstraction pays off. Designing the plugin system took real effort up front. It paid for itself many times over.
Configuration beats code. When you can express something as data, do it. Data is easier to check, change and understand than code.
Interfaces are contracts. The token adapter interface guided every decision. As long as a new implementation followed it, it worked. No surprises.
Think about your users. Here, our users were other engineers and B2B partners. Making their work easier made the whole business more successful.
The best solution came from asking a different question. We did not ask “how do we integrate tokens faster?” We asked “why are we writing code at all?”
If you are building something similar or want to talk about plugin architectures, I would love to connect.
Interested in working together? Check out my services and pricing to see how we can collaborate on your next project. Let's Build