coinbase / coinbase/agentkit

Expose viem public client actions from ViemWalletProvider

Open
#272 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
815
Avg merge
13h 31m
Merged PRs (30d)
2

Description

### 🚀 The feature, motivation and pitch

It would be helpful to have access to things like [simulateContract](https://viem.sh/docs/contract/simulateContract) from `walletProvider` in custom actions. In the context of a custom action that submits a transaction, being able to simulate the outcome first would allow the LLM to see the contract revert message rather than just seeing if a transaction failed or succeeded.

Or perhaps an easier solution is exposing both public and wallet clients from the wallet provider.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.