Skip to content

Support for EIP-2718 transaction envelope types beyond 1 and 2 #3747

Open
@aaronmgdr

Description

@aaronmgdr

Describe the Feature

I would like to be able to send and sign transactions which have types beyond null 1 and 2 and which may contain additional parameters.

Currently Ethers does not allow transactions with other types and actively removes any unknown object parameters making the use of alternative transaction types impossible.

My initial use for this will be using Celo's 0x7c ie type 124 which adds support the gasFeeCurrency parameter to transactions.

//////

I plan to do the work for this. But want to start a discussion about how ethers would prefer to address this.

I could just submit a PR to allow the specific use case I have. Alternatively perhaps ethers could support some sort of bring your own Transaction Envelope parser. As of yet I don't know how it would look or if it would actually have benefits in code size and understandability.

Code Example

sendTransaction({
 type: 124,
 to: EOA_ADDRESS,
 from: EOA_ADDRESS,
 value: 0 
 feeCurrency: CUSD_CONTRACT_ADDRESS,
 //etc
})

Other cases where alternative Transaction details are being requested

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.minor-bumpPlanned for the next minor version bump.on-deckThis Enhancement or Bug is currently being worked on.v6Issues regarding v6

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions