Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
How to have this constant take in user input from a textbox as fields?
Post Body

Trying to use a const in a program, but having problems trying to have user input fields "address, tx_hash, vout, scriptpubKey". The users will have to manually fill out the fields. Please help. Here is a code snippet:

  <script> 

var userPrivateKey = 'L1dJbaNK9agysJ1E8YNWgfKE...';
var userAddress = '1EmP88KocDDR1tgFVGPW3VHf2ZFYPuNq47';


//



const utxo = new bsv.Transaction.UnspentOutput({
  "address": userAddress,
  "txid": "44a278f0446fe988fe7b5f43dcbf6d38b2b175e2ae8fdf821fc4fe86468a1aaa",
  "vout": 4,
  "satoshis": 187243,
  "scriptPubKey": "76a91496fe679d81a9e419216f1426d861cd0de0376ca288ac",
});

The const (utxo) will be used in another function.

Author
User Suspended
Account Strength
0%
Suspended 5 months ago
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
8
Link Karma
5,901
Comment Karma
1,059
Profile updated: 1 week ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago