Skip to content

feat: add OfframpActionProvider for Base USDC cash-out - #1442

Open
ADWilkinson wants to merge 2 commits into
coinbase:mainfrom
ADWilkinson:andrew/offramp-action-provider
Open

feat: add OfframpActionProvider for Base USDC cash-out#1442
ADWilkinson wants to merge 2 commits into
coinbase:mainfrom
ADWilkinson:andrew/offramp-action-provider

Conversation

@ADWilkinson

@ADWilkinson ADWilkinson commented Aug 14, 2026

Copy link
Copy Markdown

Summary

AgentKit already supports bringing funds onchain with get_onramp_buy_url. This PR completes the other half of the flow by adding OfframpActionProvider, giving agents a native way to cash out Base USDC to fiat through @usdctofiat/offramp.

With this provider, agents can:

  • Use fast for live market pricing with 0% spread
  • Use best to cash out through the Delegate strategy
  • Send fiat to eligible payment rails such as Revolut and Venmo

This 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 offramp action wraps:

cashout({ mode, signer, amount, currency, platform, payee })

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.

cd typescript/agentkit
pnpm test -- offrampActionProvider

Links

@cb-heimdall

cb-heimdall commented Aug 14, 2026

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Aug 14, 2026
@ADWilkinson ADWilkinson changed the title feat: add OfframpActionProvider wrapping USDCtoFiat cashout feat: add OfframpActionProvider for Base USDC cash-out Aug 14, 2026
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
ADWilkinson force-pushed the andrew/offramp-action-provider branch from 82fee9a to dfa0c32 Compare August 14, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

2 participants