Bitcoin Forum
May 08, 2024, 04:13:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what if I want to create rest-API service ?  (Read 183 times)
maplelake (OP)
Jr. Member
*
Offline Offline

Activity: 47
Merit: 8


View Profile
February 25, 2020, 03:02:03 PM
 #1

Bitcoin core natually supports some rest api, such as ../rest/chaininfo.json.

I see many websites, like https://www.blockchain.com/explorer,  provide query info service by rest-api.

If i want to create such service, do I just run bitcoin core ? is it right ?


1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
1715141583
Hero Member
*
Offline Offline

Posts: 1715141583

View Profile Personal Message (Offline)

Ignore
1715141583
Reply with quote  #2

1715141583
Report to moderator
zeuner
Member
**
Offline Offline

Activity: 189
Merit: 16


View Profile
March 02, 2021, 06:40:22 PM
 #2

https://libbitcoin.info/ might be helpful.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6730


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 03, 2021, 04:07:27 AM
 #3

If i want to create such service, do I just run bitcoin core ? is it right ?

No you can't just run Core and be done with it, because the results of any queries will only show the state of your node. Certain things such as unconfirmed transactions and peers aren't the same for each node. And even if they were, JSON-RPC isn't identical to REST and you'll have to make a few minor translations in the query before you can pass it to a node.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
March 06, 2021, 12:16:53 AM
 #4

Take a look at the btc-rpc-explorer project here: https://github.com/janoside/btc-rpc-explorer

It might be exactly what you are looking for. If you want to create your own service, you could also use it to guide you. Note that it requires a Bitcoin node.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!