Bitcoinjs-Phore
This is essentially a fork of bitcoinjs-lib with a change to the network.js file to add Phore network parameters.
It provides base functionality in javascript for operations such as creating and receiving Phore transactions, and generating secure Phore keys.
Installation
npm install bitcoinjs-phore
Setup
Node.js
var phore =
Creating a transaction
var phore =let phorenet = phorenetworksphore;let txb = phorenet;let txId = ""; //insert the txId to use as Input to the Transactionlet outn = 1; //or whatever outn to be used as Input to the Transacitonlet rcv = ""; //insert the receiving address the output is being "sent" tolet amt = 100000000; //or whatever amount in phore-satoshis is being output in this transaction//Inputtxb;//Outputtxb;//Sign the transactionlet WIF = ""; //insert the WIF of the private key being used to sign the transactionlet keypairSpend = phoreECPair;txb;let tx = txb;let txHex = tx;console // logs out the hex of the transaction --> the hex (txHex) is what you need to broadcast the transaction to the Phore newtork using the Phore-RPC package