ethereumjs-monorepo

@ethereumjs/tx / TransactionInterface

Interface: TransactionInterface<T>

Type parameters

Name Type
T extends TransactionType = TransactionType

Hierarchy

Table of contents

Properties

Methods

Properties

cache

Readonly cache: TransactionCache

Defined in

tx/src/types.ts:150


common

Readonly common: Common

Defined in

tx/src/types.ts:141


data

Readonly data: Uint8Array

Defined in

tx/src/types.ts:146


gasLimit

Readonly gasLimit: bigint

Defined in

tx/src/types.ts:143


nonce

Readonly nonce: bigint

Defined in

tx/src/types.ts:142


r

Optional Readonly r: bigint

Defined in

tx/src/types.ts:148


s

Optional Readonly s: bigint

Defined in

tx/src/types.ts:149


to

Optional Readonly to: Address

Defined in

tx/src/types.ts:144


type

type: TransactionType

Defined in

tx/src/types.ts:152


v

Optional Readonly v: bigint

Defined in

tx/src/types.ts:147


value

Readonly value: bigint

Defined in

tx/src/types.ts:145

Methods

errorStr

errorStr(): string

Returns

string

Defined in

tx/src/types.ts:171


getBaseFee

getBaseFee(): bigint

Returns

bigint

Defined in

tx/src/types.ts:153


getDataFee

getDataFee(): bigint

Returns

bigint

Defined in

tx/src/types.ts:154


getHashedMessageToSign

getHashedMessageToSign(): Uint8Array

Returns

Uint8Array

Defined in

tx/src/types.ts:160


getMessageToSign

getMessageToSign(): Uint8Array | Uint8Array[]

Returns

Uint8Array | Uint8Array[]

Defined in

tx/src/types.ts:159


getMessageToVerifySignature

getMessageToVerifySignature(): Uint8Array

Returns

Uint8Array

Defined in

tx/src/types.ts:162


getSenderAddress

getSenderAddress(): Address

Returns

Address

Defined in

tx/src/types.ts:167


getSenderPublicKey

getSenderPublicKey(): Uint8Array

Returns

Uint8Array

Defined in

tx/src/types.ts:168


getUpfrontCost

getUpfrontCost(): bigint

Returns

bigint

Defined in

tx/src/types.ts:155


getValidationErrors

getValidationErrors(): string[]

Returns

string[]

Defined in

tx/src/types.ts:163


hash

hash(): Uint8Array

Returns

Uint8Array

Defined in

tx/src/types.ts:161


isSigned

isSigned(): boolean

Returns

boolean

Defined in

tx/src/types.ts:164


isValid

isValid(): boolean

Returns

boolean

Defined in

tx/src/types.ts:165


raw

raw(): TxValuesArray[T]

Returns

TxValuesArray[T]

Defined in

tx/src/types.ts:157


serialize

serialize(): Uint8Array

Returns

Uint8Array

Defined in

tx/src/types.ts:158


sign

sign(privateKey): Transaction[T]

Parameters

Name Type
privateKey Uint8Array

Returns

Transaction[T]

Defined in

tx/src/types.ts:169


supports

supports(capability): boolean

Parameters

Name Type
capability Capability

Returns

boolean

Defined in

tx/src/types.ts:151


toCreationAddress

toCreationAddress(): boolean

Returns

boolean

Defined in

tx/src/types.ts:156


toJSON

toJSON(): JsonTx

Returns

JsonTx

Defined in

tx/src/types.ts:170


verifySignature

verifySignature(): boolean

Returns

boolean

Defined in

tx/src/types.ts:166