Saturday, 23 March 2019

Introducing SLPDB—the next leap forward for Bitcoin Cash tokens

Today we're very excited to announce the next leap forward for the Bitcoin Cash token ecosystem—SLPDB. https://slpdb.bitcoin.com

SLPDB stores all token data for the Simple Ledger Protocol and makes it available over a powerful MongoDB API. Features include valid/invalid txs, supply and usage stats, token graph state, 6 collections (confirmed, unconfirmed, tokens, utxos, addresses, graphs) and real-time notifications over ZMQ.

Full testnet support: https://tslpdb.bitcoin.com

SLPDB is a fork of the amazing BitDB which has been ported to typescript. The code is 100% Open Source under the MIT License. More info: https://github.com/simpleledger/SLPDB

Example calls

List all token details and usage info: https://slpdb.bitcoin.com/explorer2/ewogICJ2IjogMywKICAicSI6IHsKICAgICJkYiI6IFsidCJdLAogICAgImZpbmQiOgogICAgewogICAgICAiJHF1ZXJ5IjoKICAgICAgeyB9CiAgICB9LAogICAgInByb2plY3QiOiB7InRva2VuRGV0YWlscyI6IDEsICJ0b2tlblN0YXRzIjogMSwgIl9pZCI6IDAgfSwKICAgICJsaW1pdCI6IDEwMDAKICB9Cn0=

List all address balances by tokenId: https://slpdb.bitcoin.com/explorer2/ewogICJ2IjogMywKICAicSI6IHsKICAgICJmaW5kIjogewogICAgICAidG9rZW5EZXRhaWxzLnRva2VuSWRIZXgiOiAiOTU5YTY4MThjYmE1YWY4YWJhMzkxZDNmNzY0OWY1ZjZhNWNlYjZjZGNkMmMyYTNkY2I1ZDJmYmZjNGIwOGU5OCIsCiAgICAgICJ0b2tlbl9iYWxhbmNlIjogeyAiJGd0ZSI6IDAgIH0KICAgIH0sCiAgICAibGltaXQiOiAxMDAwMCwKICAgICJwcm9qZWN0IjogeyJhZGRyZXNzIjogMSwgInNhdG9zaGlzX2JhbGFuY2UiOiAxLCAidG9rZW5fYmFsYW5jZSI6IDEsICJfaWQiOiAwIH0KICB9Cn0=

Example REST calls

SLPDB is now powering all SLP endpoints on REST.

List all tokens: https://rest.bitcoin.com/v2/slp/list

List all address balances by tokenId: https://rest.bitcoin.com/v2/slp/balancesForToken/df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb

submitted by /u/cgcardona
[link] [comments]

source https://www.reddit.com/r/btc/comments/b469zo/introducing_slpdbthe_next_leap_forward_for/

No comments:

Post a Comment