Fee Delegation Tx Type
Type
Below is a brief introduction to the go-cross type definition that models a Fee Delegated Dynamic Fee transaction in a custom Go-like environment. Instead of relying on external type systems, this definition extends Geth-style transaction structures to support advanced transaction formats such as fee delegation.
This interface, rewritten in TypeScript, represents how both the sender's and fee payer's signatures are embedded into a single unified transaction object. It provides a clear schema for structuring robust fee delegation logic in web3-compatible applications.
Following this overview, the full TypeScript type definition is presented along with explanations for each field. You'll see how the base DynamicFeeTx is extended into a new FeeDelegatedDynamicFeeTx type that separately includes the fee payer’s address and signature components
interface FeeDelegatedDynamicFeeTx {
to?: string;
value?: string | number | bigint;
gasLimit?: number;
maxFeePerGas: string | number | bigint;
maxPriorityFeePerGas: string | number | bigint;
data?: string;
nonce?: number;
chainId?: number;
type: '0x7' | 7;
// Sender signature
v: string | number;
r: string;
s: string;
// FeePayer
feePayer: string;
// FeePayer signature
fv: string | number; // feePayer's V
fr: string; // feePayer's R
fs: string; // feePayer's S
}
Field | Type | Description |
---|---|---|
feePayer | string | The address of the account paying the transaction fees |
fv | `string \ | number` |
fr | string | R value of the fee payer’s signature (32-byte hex) |
fs | string | S value of the fee payer’s signature (32-byte hex) |
Updated about 1 month ago