mempool/getTransactions

Streams transactions from the mempool. Transactions are streamed in case there are a large number of transactions in the mempool.

The filters specify the minimum and maximum range of the input parameter to filter the returned transactions. For example, feeRate={min: 30; max:60} specifies that only transactions with 30 <= txn.feeRate <= 60 are returned.

Request Body 

{
  limit?: number
  feeRate?: {
    min: number
    max: number
  }
  fee?: {
    min: number
    max: number
  }
  expiration?: {
    min: number
    max: number
  }
  expiresIn?: {
    min: number
    max: number
  }
  position?: {
    min: number
    max: number
  }
}

Response 

{
  serializedTransaction: string
  position: number
  expiresIn: number
}

Example 

# Request
curl -X POST 'http://localhost:8021/mempool/getTransactions' \
-H 'Content-Type: application/json' \
-d '{
    "position": {
        "min": 0,
        "max": 10
    },
    "limit": 1
}'

# Response
{
  "data": {
    "serializedTransaction": "0102000...",
    "position": 0,
    "expiresIn": 14
  }
}
{
  "status": 200
}
View on Github

Join our newsletter and stay up to date with privacy and crypto.

Discover our impactful presence — read our blog.

Use

  • Node App
  • Node CLI
  • Mine
  • Block Explorer
  • Ecosystem

Learn

  • Get Started
  • FAQ
  • Whitepaper
  • Tokenomics

Community

  • Foundation
  • Governance
  • Grants
  • Our Community

Developers

  • Documentation
  • Github
Privacy Policy

|

Media Kit

|

Copyright 2024 Iron Fish.