Skip to contents

Queries the local Monero node for its txpool once per second. The time of arrival of each transaction is saved to a database file. The database file must first be created by txpool.init. This function executes an infinite loop. Input ctrl + c to interrupt the function.

Usage

txpool.collect(
  db.file = "xmr-txpool-archive.db",
  unrestricted.rpc.url = "http://127.0.0.1:18081"
)

Arguments

db.file

Name and path of database file created by txpool.init.

unrestricted.rpc.url

URL and port of the monerod unrestricted RPC. Default is http://127.0.0.1:18081

Value

NULL (invisible)

See also

txpool.init, which create the database file and txpool.export, which exports the database contents to a CSV file.

Examples

if (FALSE) { # \dontrun{
txpool.collect()
} # }