NetworksRelease VersioningOffline transaction signingGlossary
Hardfork Update Process

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.

Learn

  • FAQ
  • Whitepaper
  • Tokenomics

Use

  • Get Started
  • Node App
  • Mine
  • Block Explorer
  • Ecosystem

Developers

  • Documentation
  • Github

Community

  • Foundation
  • Governance
  • Grants
  • Our Community

Company

  • About Us
  • Media Kit
  • Contact Us
Privacy Policy

|

Copyright 2024 Iron Fish.