Bitcoin Forum
May 05, 2024, 06:19:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin JSON RPC API (bitcoin-cli) in your web browser [new launch for 0.18.0]  (Read 253 times)
windpath (OP)
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
August 07, 2019, 08:37:31 PM
Merited by RHavar (10), malevolent (7), suchmoon (4), ABCbits (2), danda (2)
 #1

Access the Bitcoin JSON Remote Procedure Call API (bitcoin-cli) in your web browser. Includes docs on all 127 RPCs, and the ability to call and receive responses for 25 RPCs (and growing).

Completely redesigned for easy user experience, security, and speed.

https://chainquery.com/
1714889958
Hero Member
*
Offline Offline

Posts: 1714889958

View Profile Personal Message (Offline)

Ignore
1714889958
Reply with quote  #2

1714889958
Report to moderator
1714889958
Hero Member
*
Offline Offline

Posts: 1714889958

View Profile Personal Message (Offline)

Ignore
1714889958
Reply with quote  #2

1714889958
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714889958
Hero Member
*
Offline Offline

Posts: 1714889958

View Profile Personal Message (Offline)

Ignore
1714889958
Reply with quote  #2

1714889958
Report to moderator
1714889958
Hero Member
*
Offline Offline

Posts: 1714889958

View Profile Personal Message (Offline)

Ignore
1714889958
Reply with quote  #2

1714889958
Report to moderator
1714889958
Hero Member
*
Offline Offline

Posts: 1714889958

View Profile Personal Message (Offline)

Ignore
1714889958
Reply with quote  #2

1714889958
Report to moderator
windpath (OP)
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
August 09, 2019, 10:08:19 PM
 #2

What the !*$# is a partially signed bitcoin transaction (PSBT)?

Added support for executing analyzepsbt in the browser: https://chainquery.com/bitcoin-cli/analyzepsbt

Here are some sample PSBTs to play with: https://pastebin.com/2mn6p5fi
RHavar
Legendary
*
Offline Offline

Activity: 2557
Merit: 1886



View Profile
August 12, 2019, 01:10:11 AM
 #3

Awesome project. I think the most useful for me are the estimate{smart|raw}fee, although they currently don't look whitelisted

Check out gamblingsitefinder.com for a decent list/rankings of crypto casinos. Note: I have no affiliation or interest in it, and don't even agree with all the rankings ... but it's the only uncorrupted review site I'm aware of.
Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
August 12, 2019, 06:29:04 AM
 #4

What the !*$# is a partially signed bitcoin transaction (PSBT)?
based on what I read on BIP174, this is used for coinjoin transaction, am I right?
but I don't quite understand how we use such feature? use createpsbt command then what?
how do we pass this psbt to the other parties so they can do their parts and sign it?

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 12, 2019, 07:54:21 AM
 #5

based on what I read on BIP174, this is used for coinjoin transaction, am I right?
No, its for MultiSigs... at the moment, MultiSigs are mostly wallet dependant... that is to say, everyone needs to be using the same wallet to be able to participate in a multisig arrangement.

The idea of PSBT is to create a generic format for partially signed transactions, so you can use ANY wallet that supports PSBT to receive a partially signed transaction, sign it with your wallet then pass it on to the next person etc. It should also mean you don't need access to the UTXO set to be able to sign.

Creating unsigned or partially signed transactions to be passed around to multiple signers is currently implementation dependent, making it hard for people who use different wallet software from being able to easily do so. One of the goals of this document is to create a standard and extensible format that can be used between clients to allow people to pass around the same transaction to sign and combine their signatures. The format is also designed to be easily extended for future use which is harder to do with existing transaction formats.

Signing transactions also requires users to have access to the UTXOs being spent. This transaction format will allow offline signers such as air-gapped wallets and hardware wallets to be able to sign transactions without needing direct access to the UTXO set and without risk of being defrauded.


how do we pass this psbt to the other parties so they can do their parts and sign it?
It's effectively just text data, so just you can pass it in the same way you currently provide a partially signed transaction, give them a text file or you could probably use a QR Code or something like that...

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
windpath (OP)
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
August 12, 2019, 01:32:31 PM
 #6

Awesome project. I think the most useful for me are the estimate{smart|raw}fee, although they currently don't look whitelisted

Thanks! Added both estimate{smart|raw}fee as browser executable this morning:

https://chainquery.com/bitcoin-cli/estimatesmartfee

https://chainquery.com/bitcoin-cli/estimaterawfee

Note: As fate would have it estimatesmartfee is returning the same value for conservative/economical on the server, its is giving different values on my test machine so I checked via CLI, just happens to be the same on the server right now... https://imgur.com/a/ZkYbAvB
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 12, 2019, 08:00:41 PM
Last edit: November 15, 2023, 07:20:36 AM by HCP
 #7

Very useful... but just FYI, the results for the smaller decimal values don't seem to be displayed in a "friendly" way... ie. it's showing the scientific notation instead of the actual decimal value.


compared with same result from Bitcoin Core:


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
windpath (OP)
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
August 12, 2019, 08:07:04 PM
 #8

Very useful... but just FYI, the results for the smaller decimal values don't seem to be displayed in a "friendly" way... ie. it's showing the scientific notation instead of the actual decimal value.


Appreciate the heads up, I'll take a look.
windpath (OP)
Legendary
*
Offline Offline

Activity: 1258
Merit: 1027


View Profile WWW
August 29, 2019, 08:06:33 PM
 #9

We have added a few more api calls executable from a browser:


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!