feat: add OfframpActionProvider for Base USDC cash-out - #1442
Open
ADWilkinson wants to merge 2 commits into
Open
feat: add OfframpActionProvider for Base USDC cash-out#1442ADWilkinson wants to merge 2 commits into
ADWilkinson wants to merge 2 commits into
Conversation
🟡 Heimdall Review Status
|
Native AgentKit action wrapping @usdctofiat/offramp@7.0.1 cashout({ mode: fast|best }).
Fast stays Fast. Best is delegated 10 bps. Galleon/USDCtoFiat disclosed.
Base mainnet only. Does not republish the SDK.
ADWilkinson
force-pushed
the
andrew/offramp-action-provider
branch
from
August 14, 2026 06:12
82fee9a to
dfa0c32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentKit already supports bringing funds onchain with
get_onramp_buy_url. This PR completes the other half of the flow by addingOfframpActionProvider, giving agents a native way to cash out Base USDC to fiat through@usdctofiat/offramp.With this provider, agents can:
fastfor live market pricing with 0% spreadbestto cash out through the Delegate strategyThis enables complete fiat-to-crypto-to-fiat workflows inside AgentKit: fund a wallet, transact onchain, and cash out when the user is ready.
Implementation
The new
offrampaction wraps:It follows the existing AgentKit action-provider pattern and supports Base mainnet.
Testing
Added 10 unit tests covering provider behavior, network support, argument forwarding, and SDK responses. The SDK is mocked, so no USDC is spent during tests.
Links