Coder Social home page Coder Social logo

Add more API endpoints about dcrdata HOT 5 CLOSED

decred avatar decred commented on August 27, 2024
Add more API endpoints

from dcrdata.

Comments (5)

chappjc avatar chappjc commented on August 27, 2024

This should close with a /api/v1

from dcrdata.

chappjc avatar chappjc commented on August 27, 2024

With PR #25, added:

/mempool/sstx
/mempool/sstx/fees
/mempool/sstx/fees/N
/mempool/sstx/details
/mempool/sstx/details/N

from dcrdata.

chappjc avatar chappjc commented on August 27, 2024

With PR #35, added:

/stake/pool
/stake/pool/b/X
/stake/pool/r/X/Y
/stake/diff/b/X
/stake/diff/r/X/Y

where b indicates single block index and r indicates range.

from dcrdata.

chappjc avatar chappjc commented on August 27, 2024

#35 also a URL query arg to get pool values and sizes for a range of blocks in their own arrays instead of an array of structs.

For example, /api/stake/pool/r/117723/117724?arrays=true gives you this:

{
  "start_height": 117723,
  "end_height": 117724,
  "value": [
    1988282.95249548,
    1988073.46390894
  ],
  "size": [
    41007,
    41002
  ]
}

But without arrays=true, you get:

[
  {
    "size": 41007,
    "value": 1988282.95249548,
    "valavg": 48.48642798
  },
  {
    "size": 41002,
    "value": 1988073.46390894,
    "valavg": 48.48723144
  }
]

from dcrdata.

chappjc avatar chappjc commented on August 27, 2024

For this to be done:

  • A human readable directory
  • ?

Please @fai04d and @raedah and @karamble, let me know what else this needs.

from dcrdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.