Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Multiaddr + CashAddr + BIP32 support #5

Closed
wants to merge 8 commits into from

Conversation

pavel-bc
Copy link
Collaborator

@pavel-bc pavel-bc commented Oct 10, 2019

TODO

  • Split by +
  • deduplication
  • limit
  • parse errors
  • CashAddr support
  • BIP32 support
  • Pass SLIP-44 coin type from config

CLI Example

➜  electrs git:(feature/multiaddr-support) ✗ ./target/debug/cashaddr bitcoincash:qr4zgpuznfg923ntyauyeh5v7333v72xhulcfh0lwt
Legacy address: 1NM2HFXin4cEQRBLjkNZAS98qLX9JKzjKn
➜  electrs git:(feature/multiaddr-support) ✗ ./target/debug/xpub xpub6CXN923GrQnnSrRWpaocrLHYsefvaieZ54pbuFBQkfuGL5ruXS32M4ByDWjhzUAwPk3S7gjwxcyjPiU8pS1gDMMH5QHBCiP2cmAYjR3QPKg
Address: 03480c6d97397385400f2133675352fde3d352dc5e23c59f2fd1d04f9e60365cb7

REST Example

Request:

curl -X GET 'http://127.0.0.1:3000/address/1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE+1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE'

Response:

[
    {
        "address": "1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE",
        "chain_stats": {
            "funded_txo_count": 7566,
            "funded_txo_sum": 15111061408687,
            "spent_txo_count": 7552,
            "spent_txo_sum": 15104277879788,
            "tx_count": 13805
        },
        "mempool_stats": {
            "funded_txo_count": 0,
            "funded_txo_sum": 0,
            "spent_txo_count": 0,
            "spent_txo_sum": 0,
            "tx_count": 0
        }
    },
    {
        "address": "1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE",
        "chain_stats": {
            "funded_txo_count": 7566,
            "funded_txo_sum": 15111061408687,
            "spent_txo_count": 7552,
            "spent_txo_sum": 15104277879788,
            "tx_count": 13805
        },
        "mempool_stats": {
            "funded_txo_count": 0,
            "funded_txo_sum": 0,
            "spent_txo_count": 0,
            "spent_txo_sum": 0,
            "tx_count": 0
        }
    }
]

@pavel-bc pavel-bc changed the title Multiaddress support Multiaddress + CashAddr support Oct 10, 2019
@pavel-bc pavel-bc changed the title Multiaddress + CashAddr support Multiaddr + CashAddr + BIP32 support Oct 10, 2019
@pavel-bc
Copy link
Collaborator Author

Closing in favor of #6 for now

@pavel-bc pavel-bc closed this Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant