Skip to main content
Compass API Docs home page
V2
Search...
⌘K
Book a demo
Login
Search...
Navigation
Documentation
API Reference
Get Started
Overview
Quick Start Guide
Examples
Vault deposit with gas sponsorship
Support
FAQ
Partnerships
Changelog
Terms & Conditions
Privacy Policy
On this page
Key takeaways
Examples
Vault deposit with gas sponsorship
OpenAI
Open in ChatGPT
OpenAI
Open in ChatGPT
Compass API is well suited for adding earn features to existing custody solutions.
In the following example, we are adding an
Earn
feature to a hypothetical wallet provider.
You can find the code on
Github
.
Key takeaways
For the end user, everything is fully abstracted away. They just sign on transactions, as always.
The end user can deposit and withdraw, without requiring gas tokens
We don’t require the user to sign token allowances
The wallet provider earns a small fee on every vault deposit.
Everything has been implemented fully using the Compass typescript SDK
Was this page helpful?
Yes
No
Quick Start Guide
FAQ
⌘I