Giter VIP home page Giter VIP logo

bch-rpc-explorer's People

Contributors

bitjson avatar chappjc avatar dagurval avatar echterago avatar ftrader avatar gandrewstone avatar georgengelmann avatar henrikuittinen avatar janoside avatar majcosta avatar neptunix avatar oktapodia avatar proteanx avatar qshuai avatar salemkode avatar sangaman avatar shesek avatar sickpig avatar yamada-guro-baru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bch-rpc-explorer's Issues

Support for SLP tokens?

I see this explorer is hosted by many. I wonder if it's possible to add SLP support to it.
Thank you

Feature Request: Show UTXO state stats

The UTXO state is our most important metric since it's the scaling bottleneck and also can be a surrogate for our number of holders count, however I haven't found a good place where to watch its stats.

For BTC, I found that there is this: https://www.blockchain.com/es/explorer/charts/utxo-count but they don't have the same chart for BCH.

Suggestion:

  • Chart showing (time, utxo count)
  • Chart showing (time, total utxo state size)
  • Chart showing (time, median utxo size)

Update from upstream?

Description
Maybe you should update from upstream? And get all the latest upstream improvements and features in your version as well.

Screenshots

869 commits behind:

image

Regards,
Melroy van den Berg

Parse AnyHedge transactions

Like we do for flipstarter and voter.cash transactions, we can identify AnyHedge transactions.

This is possible to parse from a transaction (quoting @rkalis from AnyHedge telegram):

Let me put it in pseudocode.

From the parsed tx, you have:

hedge payout satoshis
long payout satoshis
settlement price
funding transaction (outpoint)

From that you get:

total contract satoshis = hedge payout satoshis + long payout satoshis
hedge USD payout = (hedge payout satoshis / 1e8) * settlement price
long USD payout = (long payout satoshis / 1e8) * settlement price

By definition:

hedge USD payin = hedge USD payout

Then you look up the funding transaction's block timestamp (1 rpc call).
Then you look up the approximate BCH price at the time of funding (e.g. coingecko API). Note that this is an approximation, because we cannot know the exact price used in the contract funding.

From there you calculate:

approx hedge payin satoshis = (hedge USD payin / approx funding price) * 1e8
approx long payin satoshis = total contract satoshis - approx hedge payin satoshis
approx long USD payin = (approx long payin satoshis / 1e8) * approx funding price

From there you can calculate the long's approx profit/loss in terms of sats, $ or %.

Does that make sense? So it should be 1 rpc call + 1 price api call

We don't need to provide all that info, but that is what is possible.

Feature: Missing spent & received

I'm missing spent and received amounts when looking-up a BCH address.

You only see the balance. Would be nice to see the balance with the dollar value and separate spent and received amounts.

Example:
image

Regards,
Melroy van den Berg

"Is mine" and "Is watch-only"

In transaction details view, these two properties that do not make sense in a public block explorer context and will never be checked. That is, unless that node running the block explorer is your wallet.

  • Is Mine โŒ
  • Is watch-only โŒ

Negotiate higher version against electrum server to show balance on token addresses

Per the fulcrum get_balance method, BCH balance on "token" addresses will only be shown if version is >1.5. This has led to results such as https://chipnet.imaginary.cash/address/bchtest:pzn85ff863dnceq0gt5sd88e00afchyur5jasutc0s?sort=desc&limit=10&offset=10 where BCH balances on token'd UTXOs are excluded, and the overall balance is shown as zero.

I don't know where it is, but since token support is added the explorer should be able to report a version of 1.5.0 and make Fulcrum report BCH balance on tokens again.

Support for cashtoken new cashaddress format lookup

Error when using the new CashToken format with token support I get the following error from the explorer:

/root/bch-rpc-explorer/views/address.pug:88
    86| 								div.col-md-6
    87| 
  > 88| 									if (addressObj.hash)
    89| 										if (addressObj.hash && !(addressObj.hasOwnProperty("isCashAddr")))
    90| 											div.row
    91| 												div.summary-split-table-label Hash 160

Cannot read properties of undefined (reading 'hash')

It works for the standard cashaddress:
https://chipnet.chaingraph.cash/address/qry77fz5ph8supxplr57h6lfx0jlw5kxjck0t4wpat

but not for the new format for the same address:
https://chipnet.chaingraph.cash/address/zry77fz5ph8supxplr57h6lfx0jlw5kxjc39ctq8zc

Support for CashTokens [Feature Request] [BCH May 2023]

I think something like this:

  • 1 more index (tokenID, utxo)

UX:

  • list of utxos for a given tokenID
  • list of addresses holding some tokenID utxos
  • show token data as distinct fields instead of as part of locking script (like when looking at a transaction)

Applies to Nexa explorer fork just the same (group tokens)

Add time of blocks in homepage

The blocks page has a column for the exact time of a block (it has a Date column, which shows time in MM/dd hh:mm format, with a full yyyy-MM-dd hh:mm:ss format in a tooltip)

The home page has only a counter for "how much time has passed since the that block".

It would be useful to see the exact time of blocks from the home page directly, maybe in a tooltip like in the blocks page.

Thanks in advance!

mining summary is not working properly if custom range use non existent block heights

on /mining-summary if i enter a custom range that is outside the blockchains current tip the page seems like it is hanging.

it does not show an error. and does not let you select any other block range. you also cannot select one from the preconfigured selection. you can either enter a new range in the boxes in order to go back to the block range buttons i need to refresh the page.

this happens for both numbers > tip.height and numbers < 0

clickable bip21 link

can we have a clickable bip21 link next to the QR code on the address detail page pls?
it would make tip bot usage lot easier

Accept low-fee transactions

I suggest accepting low-fee transactions to the mempool for the block explorer.

Today I was hit by a bug in Copay that created a transaction that was 1 satoshi short of 1sat/byte. The only explorer that had said transaction was blockchair, and thanks to that I could figure out why my transaction was not confirming.

So, do the same and if possible also add a note that the transaction is low fee to help people than run into the same issue diagnose why their tx isn't confirming.

Baby636

Describe the bug

A clear and concise description of what the bug is.

Environment (please complete the following information):

  • Bitcoin Core / Node Version [e.g. 0.16.3]
  • NodeJS Version [e.g. 9.x]
  • Browser [e.g. chrome, safari]
  • Code Version / Commit [e.g. ab6cde8]

Configuration file content

Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!

  • bitcoin.conf
  • Your btc-rpc-explorer environment configuration (either $WORKING_DIR/.env or ~/.config/btc-rpc-explorer.env)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots or Log Output

If applicable, add screenshots or log output to help explain your problem.

Additional context

Add any other context about the problem here.

Two more nits on peers.pug

page under the Last Send / Receive column it says text-monospace for every entry

nit: the unit of time is also never indicated

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.