Skip to content

nooschain v0.1.0


nooschain / chain/mempool / addTransaction

Function: addTransaction()

addTransaction(transaction, database?): Promise<void>

Defined in: chain/mempool.ts:57

Adds a new transaction to the mempool by inserting it into the transactions table with a status of "pending" and adding an entry to the mempool_transactions table.

Parameters

transaction

SignedTransaction

The transaction to add to the mempool.

database?

ChainDatabase = db

The database instance to use for the operation.

Returns

Promise<void>

Audience-first NOOSChain documentation.