lambdaclass / lambdaclass/eth-agent

Expose transaction replacement (speed up/cancel) in AgentWallet

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Problem

While acceleration.ts exists in the protocol layer, AgentWallet doesn't expose methods to speed up or cancel pending transactions.

Recommendation

Add to AgentWallet:

  • speedUp(txHash, options?) - Replace with higher gas
  • cancel(txHash) - Replace with zero-value self-send
  • Track pending transactions for replacement

Use Cases

  • Speed up stuck transactions during gas spikes
  • Cancel unintended transactions before confirmation

Priority

Feature request

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading acceleration.ts in the protocol layer and locating the AgentWallet entry point. Trace how pending transactions are represented and determine how speedUp(txHash, options?) and cancel(txHash) should use the existing replacement behavior. Done means AgentWallet exposes both operations and tracks pending transactions for replacement.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.