@ethereumjs/tx / LegacyTxInterface
Interface: LegacyTxInterface<T>
Type parameters
Hierarchy
Table of contents
Properties
Methods
Properties
cache
• Readonly cache: TransactionCache
Inherited from
TransactionInterface.cache
Defined in
tx/src/types.ts:150
common
• Readonly common: Common
Inherited from
TransactionInterface.common
Defined in
tx/src/types.ts:141
data
• Readonly data: Uint8Array
Inherited from
TransactionInterface.data
Defined in
tx/src/types.ts:146
gasLimit
• Readonly gasLimit: bigint
Inherited from
TransactionInterface.gasLimit
Defined in
tx/src/types.ts:143
nonce
• Readonly nonce: bigint
Inherited from
TransactionInterface.nonce
Defined in
tx/src/types.ts:142
r
• Optional Readonly r: bigint
Inherited from
TransactionInterface.r
Defined in
tx/src/types.ts:148
s
• Optional Readonly s: bigint
Inherited from
TransactionInterface.s
Defined in
tx/src/types.ts:149
to
• Optional Readonly to: Address
Inherited from
TransactionInterface.to
Defined in
tx/src/types.ts:144
type
• type: TransactionType
Inherited from
TransactionInterface.type
Defined in
tx/src/types.ts:152
v
• Optional Readonly v: bigint
Inherited from
TransactionInterface.v
Defined in
tx/src/types.ts:147
value
• Readonly value: bigint
Inherited from
TransactionInterface.value
Defined in
tx/src/types.ts:145
Methods
errorStr
▸ errorStr(): string
Returns
string
Inherited from
TransactionInterface.errorStr
Defined in
tx/src/types.ts:171
getBaseFee
▸ getBaseFee(): bigint
Returns
bigint
Inherited from
TransactionInterface.getBaseFee
Defined in
tx/src/types.ts:153
getDataFee
▸ getDataFee(): bigint
Returns
bigint
Inherited from
TransactionInterface.getDataFee
Defined in
tx/src/types.ts:154
getHashedMessageToSign
▸ getHashedMessageToSign(): Uint8Array
Returns
Uint8Array
Inherited from
TransactionInterface.getHashedMessageToSign
Defined in
tx/src/types.ts:160
getMessageToSign
▸ getMessageToSign(): Uint8Array | Uint8Array[]
Returns
Uint8Array | Uint8Array[]
Inherited from
TransactionInterface.getMessageToSign
Defined in
tx/src/types.ts:159
getMessageToVerifySignature
▸ getMessageToVerifySignature(): Uint8Array
Returns
Uint8Array
Inherited from
TransactionInterface.getMessageToVerifySignature
Defined in
tx/src/types.ts:162
getSenderAddress
▸ getSenderAddress(): Address
Returns
Address
Inherited from
TransactionInterface.getSenderAddress
Defined in
tx/src/types.ts:167
getSenderPublicKey
▸ getSenderPublicKey(): Uint8Array
Returns
Uint8Array
Inherited from
TransactionInterface.getSenderPublicKey
Defined in
tx/src/types.ts:168
getUpfrontCost
▸ getUpfrontCost(): bigint
Returns
bigint
Inherited from
TransactionInterface.getUpfrontCost
Defined in
tx/src/types.ts:155
getValidationErrors
▸ getValidationErrors(): string[]
Returns
string[]
Inherited from
TransactionInterface.getValidationErrors
Defined in
tx/src/types.ts:163
hash
▸ hash(): Uint8Array
Returns
Uint8Array
Inherited from
TransactionInterface.hash
Defined in
tx/src/types.ts:161
isSigned
▸ isSigned(): boolean
Returns
boolean
Inherited from
TransactionInterface.isSigned
Defined in
tx/src/types.ts:164
isValid
▸ isValid(): boolean
Returns
boolean
Inherited from
TransactionInterface.isValid
Defined in
tx/src/types.ts:165
raw
▸ raw(): TxValuesArray[T]
Returns
TxValuesArray[T]
Inherited from
TransactionInterface.raw
Defined in
tx/src/types.ts:157
serialize
▸ serialize(): Uint8Array
Returns
Uint8Array
Inherited from
TransactionInterface.serialize
Defined in
tx/src/types.ts:158
sign
▸ sign(privateKey): Transaction[T]
Parameters
| Name |
Type |
privateKey |
Uint8Array |
Returns
Transaction[T]
Inherited from
TransactionInterface.sign
Defined in
tx/src/types.ts:169
supports
▸ supports(capability): boolean
Parameters
Returns
boolean
Inherited from
TransactionInterface.supports
Defined in
tx/src/types.ts:151
toCreationAddress
▸ toCreationAddress(): boolean
Returns
boolean
Inherited from
TransactionInterface.toCreationAddress
Defined in
tx/src/types.ts:156
toJSON
▸ toJSON(): JsonTx
Returns
JsonTx
Inherited from
TransactionInterface.toJSON
Defined in
tx/src/types.ts:170
verifySignature
▸ verifySignature(): boolean
Returns
boolean
Inherited from
TransactionInterface.verifySignature
Defined in
tx/src/types.ts:166