Questions tagged [javascript]

questions about javascript usage by Monero related services, including its purpose and possible risks

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

Error sending Monero transactions to my daemon [tx used wrong inputs]

After several checks made with the help of the community here on Stack-Exchange, I was able to move forward with my problem. Now I have reached the point that the transactions are not sent even ...
AlexCav's user avatar
0 votes
0 answers
33 views

How to have list of incoming and outgoing tx given an address?

I have my full monero node and I'm trying to extrapolate from it, all the tx (incoming and outgoing) involving my address. Right now I'm using the monerojs library and scanning the blocks, the data I'...
AlexCav's user avatar
0 votes
0 answers
23 views

Asynchrony issues with wallet creation (monero-javascript)

I'm creating my monero wallets using the monero-javascript javascript library and this is the code I use async function createWalletFull(password, mnemonic, id, network) { try { let wallet ...
AlexCav's user avatar
0 votes
1 answer
26 views

How to manage unlocked balance in Monero? Failed to parse signed tx (javascript)

I'm trying to develop a non-custodial wallet and would like to understand how I can manage unlocked balances in Monero. If every 20 minutes I can use my balance for each transaction, will users from ...
AlexCav's user avatar
0 votes
1 answer
50 views

Problem signing transactions with monerojs

I have a problem when trying to sign transactions in monero, using the monerojs library. This is my code: async function signAndSendTransaction(toAddress, amount) { let wallet = await monerojs....
AlexCav's user avatar
0 votes
1 answer
64 views

Synchronization of Monero (javascript) wallet too long

When I run the monerojs library method for wallet synchronization on my local testnet node, it takes too long to synchronize. Every time I run the code it's like it's re-syncing all over again. ...
AlexCav's user avatar
0 votes
0 answers
33 views

Unable to view an account balance using monerojs

I downloaded my local node on the Monero testnet, specifically I used: monerod --testnet --db-sync-mode fast --prune-blockchain After successfully launching the node, I mined some XMR. My intention ...
AlexCav's user avatar
0 votes
0 answers
33 views

Transactions in Monero

I need to understand and know how transactions work in Monero. Whether the transactions are similar or completely different from other blockchains. Also, an example javascript implementation would be ...
AlexCav's user avatar
0 votes
0 answers
19 views

integrated addresses monero javascript

my question are 2 : how to generate monero address from bip39 words ( i am using react so i need a react compatible code ) how to generate integrated addresses using JavaScript ( again react ...
user16104's user avatar
0 votes
1 answer
41 views

How to update a subaddress label and see the change when fetching the subaddress from wallet?

I'm building a Monero Wallet using monero-javascript with React.js. I'm updating a subaddress label, but when fetching all subaddresses from the wallet afterwards, I see that the subaddress label was ...
TiagoS's user avatar
  • 3
1 vote
1 answer
74 views

Monero public key generation

I'm trying to get the public key with different JavaScript libraries: with elliptic and with libsodium-wrappers-sumo This is my code: const BN = require('bn.js'); const EdDSA = require('elliptic')....
Ivan Ivanov's user avatar
0 votes
1 answer
147 views

How do I connect to a wallet by mnemonic via JavaScript? (to get account balance, for instance)

I've successfully created all the account "bits" from mnemonic (generated here for tests): const monerojs = require("monero-javascript"); const mnemonic = ... const moneroNetwork =...
YakovL's user avatar
  • 105
0 votes
2 answers
89 views

Can I use testnet open node for making rpc requests about testnet? If yes, what am I doing wrong (trying to get block height)?

I'm exploring what APIs are available to explore mainnet and testnet and a small task I'm trying to do is to get block height of testnet. Docs about networks tell that there's a testnet open node: ...
YakovL's user avatar
  • 105
0 votes
1 answer
100 views

How to sign a transaction using javascript

I know that it is possible to create an unsigned transaction using the wallet RPC (with the command transfer). Is it possible to sign this transaction with just javascript (without using the wallet ...
Ivan Ivanov's user avatar
1 vote
0 answers
47 views

Display the contents of a wallet on a website

I want to dynamically display the contents of a Monero wallet via a simple HTTP fetch from a web page. Something like: var walletViewKey = "48732ifhsdjf8w9"; var walletContents = fetch(...
tally's user avatar
  • 11
2 votes
1 answer
112 views

ed25519 problem with libsodium implementation S_a + S_b = (s_a+s_b)*G

I'm trying to make my own implementation of atomic swaps by following this article. I use a low level node.js bindings for libsodium for this. If I understand the protocol correctly, then Alice and ...
Ivan Ivanov's user avatar
0 votes
1 answer
295 views

What is a quick and easy way to convert a Monero private key into a 24 word mnemonic seed?

Is there a easy javascript way to convert a private key into a 24 word mnemonic seed? I understand that Monero private keys are generated using Base58, but where in code does it show me how to convert ...
Patoshi パトシ's user avatar
0 votes
1 answer
51 views

JS implementation of ge_fromfe_frombytes_vartime

I'm working on JS implementation of Monero wallet. I got stuck with the ge_fromfe_frombytes_vartime method. Original code: https://github.com/monero-project/monero/blob/v0.17.1.9/src/crypto/crypto-...
mahnunchik's user avatar
1 vote
1 answer
131 views

Missing 1 character in Monero address generation from a seed using Javascript

I have an interesting one off case with a Monero address generation where I am generating a 94 character Monero address vs 95 characters. However when I take the private_spend_key and run it through ...
Patoshi パトシ's user avatar
0 votes
1 answer
164 views

Wordpress :: mining with user's CPU

We are in 2020 and I was having a look at this post from 2018 which describes 3 WordPress plug-in we might use to mine Bitcoins through users CPU: Simple Monero miner: needs subscription to https://...
Francesco Mantovani's user avatar
2 votes
1 answer
501 views

How to access to monero rpc from https javascript

I wrote a small javascript to test digest authentication on monerod and monero-wallet-rpc. When running on a http (no tls) website, authentication works, and I get my response. Then trying the same ...
Mogens TrasherDK's user avatar
1 vote
1 answer
184 views

sc_reduce32 returning wrong private view key

Based on this old answer, independently of the programming language (I'm using node.js with BigInt(), though), to generate the private spend key you should: Start with a seed (the same as the private ...
DadiBit's user avatar
  • 135
2 votes
3 answers
461 views

How to create a transaction offline using javascript?

I saw a method for sending a transaction to a daemon, but can't find information on how to create and sign a tx using javascript. I can't use the wallet-cli/RPC etc.
intosKai's user avatar
1 vote
2 answers
94 views

I can't reproduce a hash sent from a miner [javascript]

I'm looking at nodejs-pool and this is what I extracted from it to verify the hash sent by the miner: // All the variables are self explanatory const cnUtil = require("cryptonote-util"); ...
Shiva T. Kota's user avatar
0 votes
1 answer
175 views

How to generate a unique deposit address for a Monero wallet

Hi I want to generate a unique deposit address for my Monero wallet. Please let me know if I can do this using javascript, without unlocking my wallet, just using the wallet or public key, or any ...
Monero Developer's user avatar
0 votes
1 answer
326 views

Any quick way for me to test my browser's hash rate for CryptoNight v2?

I want to test the rate at which a WebAssembly miner can calculate CryptoNight v2 hashes in my Chrome web browser (or what my browser's Monero hash rate would have been as of ~May 2018). Is there an ...
Magnus's user avatar
  • 101
2 votes
2 answers
253 views

How does one craft a Monero transaction locally, sign with their private key and then broadcast using javascript?

I'm looking for the specs to craft a Monero transaction and then sign this transaction with my Monero private spend key. Then broadcast this signed transaction to a node. I want to do this in ...
Patoshi パトシ's user avatar
3 votes
2 answers
229 views

Is there a javascript implementation to generate your Monero subaddresses without giving out your private-spend key?

I want to create an online widget where one can output their subaddresses without having to input their private-spend key and only use the other keys provided. Is there a javascript implementation of ...
Patoshi パトシ's user avatar
1 vote
1 answer
237 views

Unable to connect to monero-wallet-rpc from code

I have run the monero-wallet-rpc using the below command: ./monero-wallet-rpc --rpc-bind-port 8080--rpc-bind-ip 127.0.0.1 --prompt-for-password --wallet-file sample-wallet --rpc-login walletuser:...
Mohammed niyas's user avatar
3 votes
1 answer
500 views

How to check balance of monero paper wallet from nodejs?

I'm taking address and viewkey as input then want to return its balance in my expressjs project. How to call monero blockchain from nodejs for checking balance of any paper wallet?
Mahfuz's user avatar
  • 31
1 vote
1 answer
1k views

How to Generate monero wallet on server-side(node.js) or locally?

Already looking around for a few days, but can't find solution. Found this awesome repo: https://github.com/moneromooo-monero/monero-wallet-generator/blob/master/monero-wallet-generator.html. But it'...
Oysho Boy's user avatar
3 votes
2 answers
117 views

Is there a library similar to bitcore?

Is there a library like insight / bitcoin that interacts with Monero to create an API to scan the blockchain?
Shamoon's user avatar
  • 131
1 vote
3 answers
899 views

Is there a Javascript implementation of the CryptoNight algorithm?

Before I seek to write one of my own, I wanted to see if there's a CryptoNight Javascript algorithm anywhere out there. I found the CryptoNoter project, but it only contains an obfuscated binary file ...
Dave's user avatar
  • 277
2 votes
0 answers
247 views

Non-WebAssembly browser miner?

I'm trying to find a javascript-based Monero minero (or another coin I suppose would be OK), which does not require WebAssembly. So far the only person I have seen figure this out is CryptoNoter, but ...
BITCONNEEEEEEEEEE's user avatar
1 vote
1 answer
519 views

Income from CoinHive Monero ads

Salon.com will mine Monero on its visitors' computers to compensate for the loss of advertising revenue. How does the income from such mining "ads" compare to the cost-per-clic or cost-per-impression ...
Nemo's user avatar
  • 111
1 vote
2 answers
807 views

How to authedmine.com mining 24/7? (Coinhive)

I'm using Coinhive for the first time. I setup the JS on my website. When I click on the "Open" miner link in my Dashboard, it brings me to a simple page that displays the hashing/mining happening in ...
vexccorx's user avatar
0 votes
1 answer
731 views

Generate an integrated address using javascript in the browser?

Is there a way to generate an integrated address (monero address + payment id) using javascript or PHP? This is assuming we just need the public monero address or do we also need the public view key ...
Patoshi パトシ's user avatar
1 vote
2 answers
3k views

CoinHive javascript doesn't seem to work

I recently made a localhost website to easily mine Monero using my home computers. With CoinHive and the JavaScript miner (without the opt-in screen), I don't see my processor usage go up at all, ...
SidS's user avatar
  • 155
1 vote
1 answer
373 views

Monero Javascript Library

It is my first time working with Monero, since it is a coin based on blockchain I guess it follows similar principles than BTC and ETH. Is there a javascript library like bitcore or web3 to interact ...
Eduardo's user avatar
  • 111
3 votes
1 answer
4k views

how to use coinhive java script with GPU?

i use coinhive simple UI miner and sometimes javascript miner for mining Monero in coinhive.com can i use GPU instead of CPU for mining in coinhive website?
Freddy's user avatar
  • 33
1 vote
1 answer
1k views

What is the difference hashing power when running the JS Monero Miner via a browser vs Running solo Mining with the cli?

Just learned about the js miner for monero https://coin-hive.com - What is the difference in hashing power when mining through the browser using this method and doing it via the command line as a ...
Patoshi パトシ's user avatar
7 votes
1 answer
8k views

How to implement a java script version of monero CPU miner

Coin-hive.com implements a java-script version of monero cpu miner. Which we can insert on our website to mine monero through the users CPU power. Can Someone provide me leads on how this works on the ...
Sumit's user avatar
  • 173
4 votes
1 answer
856 views

Is there a sample JavaScript code showing how to generate a monero address from a string of characters?

I'm looking to make a JavaScript brain wallet generator for Monero. Is there a JavaScript library to create Monero addresses?
Patoshi パトシ's user avatar
7 votes
1 answer
310 views

Can I avoid Javascript poisoning when using MyMonero.com?

I read this from fluffyponyza regarding safety of his site MyMonero.com: There's simply no way I can control and guarantee the JavaScript delivery from the server to your computer, so you can be ...
Clement J.'s user avatar
  • 3,339
14 votes
5 answers
2k views

How to perform a simple verification of a Monero address with a regular expression?

For people that want to do a simple verification of a Monero address to ensure it has been entered correctly, what are some methods that can be employed?
ferretinjapan's user avatar
12 votes
2 answers
747 views

Are there any Monero specific programming language "libraries" available?

I understand that simplewallet has a raw JSON RPC interface available, but are there any specific "helper" libraries available for a relatively modern programming language(PHP, Python, Java, ...
choffman's user avatar
  • 123
13 votes
1 answer
970 views

Tor support on MyMonero.com

Many privacy focused Tor users are interested or have the potential to be interested in Monero. IP address protection is important to Tor users. Why was Tor removed from the CORS headers on the ...
seek adventure's user avatar