Bitcoin Forum
September 17, 2024, 09:22:33 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: bitcoinjs-lib without node.js on: December 01, 2023, 02:27:27 PM
ETFbitcoin, what did you exactly put in the first field of the tx, labeled
 Address, WIF key, Redeem Script or Transaction ID:, an address, a script, a TxID or a key?  I enter my address and itīs not accepted, and my goal is to use my address, if possible.
2  Bitcoin / Bitcoin Technical Support / Re: bitcoinjs-lib without node.js on: November 24, 2023, 04:56:17 PM
You can do that by open "Help" -> "Setting" or visit https://coinb.in/#settings and choose "Bitcoin (Testnet)" on Network option.

Not working at all, now trying another one: mm7BAhJKvL9FrAim1gCYoM3WJHGYYfcXLV

The address or redeem script you have entered is invalid

Is testnet working to you on coinb.in?
3  Bitcoin / Bitcoin Technical Support / Re: bitcoinjs-lib without node.js on: November 23, 2023, 04:38:23 PM
Thank you, guys, all answers add priceless info to my knowlege. Now, some details:

Iīm cuban, so my connection is not the best to npm libraries; it takes too long. Is there a way to npm my already dowloaded lib instead?

Now some other considerations: if bitcoinjs-min.js can be used in an off-node manner, why not the same principle to build a Tx with same lib? Any special reason?

No matter whether bitcoinjs-lib.js or -min.js, as stated by me before, no matter if more -libs are needed, the matter is to manage a .js lib like any other .js file, just from the browser. If not possible, a reason could be indicated.

Iīm aware that more steps are needed, of course, but the function to create a new public address/private key is in the same lib containing functions to build a transaction. No matter how many steps, npm installation doesnīt add functions to the library, and this is a .js file, not a special one that can only be read by node.js, I guess.

Hope you understand my concern.

ETFbitcoin, coinb.in is according to my goal: prepare an off-line Tx. However, a testnet addr is not accepted:
"The address or redeem script you have entered is invalid". Thatīs the message. My addr is fine and funded:

muKdpCX1tGhaREkY9foqSkPCCQqXbXB6QQ, but is not accepted, even after selecting bitcoin testnet at setting page. Any sugestion? I wanna test the wallet with fake btc before entering real money addr/key in mainnet.

Thank you all.
4  Bitcoin / Bitcoin Technical Support / bitcoinjs-lib without node.js on: November 21, 2023, 03:07:02 PM
Hello. This link leads to a solution posted by someguy123 with bitcoin-min.js to generate public addr/private key, just with 3 lines of code:
https://bitcointalk.org/index.php?topic=750022.msg9974990#msg9974990

The method is:

First, for the head in html document:

Code:
<script src="js/bitcoinjs-min.js"></script>

Then the function to call is:

Code:
var key = Bitcoin.ECKey.makeRandom();
var PubKey = key.pub.getAddress().toString();
var PrivKey = key.toWIF();

And that's it. An elegant, "nodeless" solution.

My issue is this: How to use such a simple method, but for building a btc transaction instead? You know, a nodeless method, just a dir with bitcoinjs-lib inside (or -min, whatever) and pure javascript to call the corresponding functions.

Thank you in advance.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!