Giter VIP home page Giter VIP logo

mempool.js's Introduction

The Mempool Open Source Project® mempool

mempool-github.mp4

Mempool is the fully-featured mempool visualizer, explorer, and API service running at mempool.space.

It is an open-source project developed and operated for the benefit of the Bitcoin community, with a focus on the emerging transaction fee market that is evolving Bitcoin into a multi-layer ecosystem.

Installation Methods

Mempool can be self-hosted on a wide variety of your own hardware, ranging from a simple one-click installation on a Raspberry Pi full-node distro all the way to a robust production instance on a powerful FreeBSD server.

Most people should use a one-click install method.

Other install methods are meant for developers and others with experience managing servers. If you want support for your own production instance of Mempool, or if you'd like to have your own instance of Mempool run by the mempool.space team on their own global ISP infrastructure—check out Mempool Enterprise®.

One-Click Installation

Mempool can be conveniently installed on the following full-node distros:

We highly recommend you deploy your own Mempool instance this way. No matter which option you pick, you'll be able to get your own fully-sovereign instance of Mempool up quickly without needing to fiddle with any settings.

Advanced Installation Methods

Mempool can be installed in other ways too, but we only recommend doing so if you're a developer, have experience managing servers, or otherwise know what you're doing.

  • See the docker/ directory for instructions on deploying Mempool with Docker.
  • See the backend/ and frontend/ directories for manual install instructions oriented for developers.
  • See the production/ directory for guidance on setting up a more serious Mempool instance designed for high performance at scale.

mempool.js's People

Contributors

den1258 avatar draichi avatar miguelmedeiros avatar mikeriss avatar softsimon 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mempool.js's Issues

Change version number - rollback to version 2.2.0

DESCRIPTION

We decided to follow the major and minor version of the main project mempool/mempool (current: v2.2.x).
So for now one, we will update the patch version for features and bug fixes of this repository.

HOW TO FIX

  • Change version 2.3.0 to 2.2.0 in the package.json file.
  • Remove old tags ( v2.3.0, v2.2.1, v2.0.0 ).
  • Recreate the tag v2.2.0 with the latest code.
  • Unpublish the npm package.
  • Republish npm package.

Correct custom hostname, port and ssl setting

Make sure that mempool.js is configurable with custom hostname, port and HTTP/HTTPS and WS/WSS.

  • mempool.js defaults to HTTPS, it only switches to HTTP if the hostname contains the word 'localhost'
  • umbrel.local requires port 3006 to be specified (you can fake this by entering hostname 'umbrel@local:3006', but the umbrel example omits this
  • once these two issue are overcome, mempool.js is hardcoded to WSS, so even if type hostname 'umbrel.local:3006' the connection is over WSS, and needs to be WS

Can't use mempool.js to broadcast raw transaction to signet.

I installed the lastest version of mempool.js from npm.
https://www.npmjs.com/package/@mempool/mempool.js

Node.js version is v18.5.0

My code is....

import mempoolJS from '@mempool/mempool.js'

const { bitcoin: { transactions } } = mempoolJS({
    hostname: 'mempool.space',
    network: 'signet'
})

const txhex = 'a_valid_txhex';
const txid = await transactions.postTx({ txhex });

console.log(txid);

Run the program, then throwing this exception.
'sendrawtransaction RPC error: {"code":-22,"message":"TX decode failed. Make sure the tx has at least one input."}'

I copied the same txhex to https://mempool.space/signet/tx/push
The transaction is broadcast successfully!

This obviously is a bug from mempool.js

track-address not working

does the track-address works?

I tried this:

  const ws = websocket.initServer({
   options: [{ 'track-address': '<address>' }],
  })
...

But the only message I got when a tx arrived to my address was this:

{ conversions: { USD: 59005.314597715995 } }

that seems not related.

Where is my money

My transfer has not yet been confirmed it's already been didn't have

Mistaken BlockInstance Interface

Description

I can't use getBlocks function without parameters.

Steps to reproduce

import mempoolJS from '@mempool/mempool-js'

const { blocks } = mempoolJS()

// Error `Expected 1 arguments, but got 0.`
blocks.getBlocks().then(console.log).catch(console.error)

// works
blocks.getBlocks({}).then(console.log).catch(console.error)

Possible fix

https://github.com/mempool/mempool-js/blob/f39361263a16d234988bf58175fd3f5e192ecc87/src/interfaces.ts#L57

Should be:

 getBlocks: (params?: { start_height: number }) => Promise<Block>;

I have a few questions with track-address

Hello there! Right now, I'm working with MempoolJS and I have a few questions related to track-address.

When I subscribe one address and I make a payment to it, I'm receiving one property called address-transactions, in this step all is correct, but when I restart the server, the address-transactions doesn't show anything else, and I want to ask you guys, is it possible to subscribe one address for more time???

That is a little example code about how to implement that track-address event

const ws = new WebSocket("wss://mempool.space/api/v1/ws");

ws.on('open', () => {
     ws.send(JSON.stringify({ 'track-address': "btc address"}));
});

Wtf

Where the he'll is my transaction at been 20 hrs this is bullshit btc transaction were created to be fast my ass.

Ну че там ?

Пока что не очень хорошо понимаю это приложение. Уже долгое время не могу вывести деньги, они куда то пропадают. Их же можно после каждой удачной транзакций выводить или есть определённое время?

v2.3 - New minor branch

New minor version (2.3.0) will add support to Bitcoin (mainet, testnet, signet), Bis and Liquid APIs.

Bitcoin Mainet API - https://mempool.space/bisq/api
Testnet Mainet API - https://mempool.space/bisq/api
Signet Mainet API - https://mempool.space/bisq/api
Bisq API - https://mempool.space/bisq/api
Liquid API - https://mempool.space/bisq/api

image

  • Bitcoin
    • addresses
    • blocks
    • fees
    • mempool
    • transactions
    • websocket
  • Bisq
    • addresses
    • blocks
    • statistics
    • transactions
  • Liquid
    • addresses
    • assets
    • blocks
    • fees
    • mempool
    • transactions
    • websocket

Object mempoolJS undefined using /dist/mempool.min.js

Description

Object mempoolJS is undefined when I import the ./dist/mempool.min.js from the html examples ./examples/html.

Sets to reproduce it

Just run any html example running with the script mempool.min.js:
image
image

Possible fix

This line:
https://github.com/mempool/mempool-js/blob/f39361263a16d234988bf58175fd3f5e192ecc87/package.json#L28

Should be:

"build": "tsc | browserify lib/index.js --standalone mempoolJS > dist/mempool.js | browserify -p tinyify lib/index.js --standalone mempoolJS > dist/mempool.min.js",

Bitcoin

0x3b93B1f5232a4E99aDd90Ae65642c0289797420E

This address can only receive Ethereum from Ethereum network. Don’t send ETH from other networks, any ERC-20s or NFTs, or it may result in a loss of funds.

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.