Description
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
})