@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / PendingTransaction

Class: PendingTransaction

Extends

Constructors

new PendingTransaction()

new PendingTransaction(data, memoizedHash?): PendingTransaction

Parameters

data

data.argsFields: Field[]

data.auxiliaryData?: string[]

data.isMessage?: boolean

data.methodId?: Field

data.nonce?: UInt64

data.sender?: PublicKey

data.signature?: Signature

memoizedHash?: Field

Returns

PendingTransaction

Overrides

UnsignedTransaction.constructor

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:155

Properties

argsFields

readonly argsFields: Field[]

Inherited from

UnsignedTransaction.argsFields

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:37


auxiliaryData

readonly auxiliaryData: string[]

Used to transport non-provable data, mainly proof data for now These values will not be part of the signature message or transaction hash

Inherited from

UnsignedTransaction.auxiliaryData

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:39


isMessage

readonly isMessage: boolean

Inherited from

UnsignedTransaction.isMessage

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:41


methodId

readonly methodId: Field

Inherited from

UnsignedTransaction.methodId

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:31


nonce

readonly nonce: UInt64

Inherited from

UnsignedTransaction.nonce

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:33


sender

readonly sender: PublicKey

Inherited from

UnsignedTransaction.sender

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:35


signature

signature: Signature

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:153

Methods

argsHash()

argsHash(): Field

Returns

Field

Inherited from

UnsignedTransaction.argsHash

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:66


getSignatureData()

getSignatureData(): Field[]

Returns

Field[]

Inherited from

UnsignedTransaction.getSignatureData

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:84


hash()

hash(): Field

Returns

Field

Inherited from

UnsignedTransaction.hash

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:72


sign()

sign(privateKey): PendingTransaction

Parameters

privateKey: PrivateKey

Returns

PendingTransaction

Inherited from

UnsignedTransaction.sign

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:92


signed()

signed(signature): PendingTransaction

Parameters

signature: Signature

Returns

PendingTransaction

Inherited from

UnsignedTransaction.signed

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:107


toJSON()

toJSON(): PendingTransactionJSONType

Returns

PendingTransactionJSONType

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:171


toProtocolTransaction()

toProtocolTransaction(): AuthorizedTransaction

Returns

AuthorizedTransaction

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:189


toRuntimeTransaction()

toRuntimeTransaction(): RuntimeTransaction

Returns

RuntimeTransaction

Inherited from

UnsignedTransaction.toRuntimeTransaction

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:97


fromJSON()

static fromJSON(object): PendingTransaction

Parameters

object: PendingTransactionJSONType

Returns

PendingTransaction

Defined in

packages/sequencer/src/mempool/PendingTransaction.ts:136