As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
65 views

EDIT | Is it possible to send (transfer, request) ADA using just Javascript?

Using just HTML / PHP / Javascript and cardano-serialization, I have the connect wallet working. It shows the balance and stake address. So I have gotten that far. My question is, how can I request ...
lovetoshi's user avatar
2 votes
1 answer
29 views

Api for historical USD rates?

I want to fetch the historical USD rates from a timestamp, is there any api available for that could be used in javascript?
Yogesh's user avatar
  • 51
0 votes
4 answers
35 views

Recover a Cardano wallet offline

Is there a way to recover or generate the addresses of my wallet (24 seed) without using external servers (JavaScript)? Just like we do with other blockchains? Example: https://iancoleman.io/bip39/
Enzo's user avatar
  • 215
0 votes
1 answer
24 views

Unexpected error coming from Helios library during connection to preview TestNet verification?

My Eternl wallet now has an account that is targeted towards the preview TestNet. I did activate the account for connecting to Cardano dApps. I am able to connect to my wallet from Picoswap. However, ...
Robert Oschler's user avatar
0 votes
1 answer
86 views

Need client side browser Javascript example on how to make ADA payments via the Eternl wallet?

I want to initiate an ADA payment via the Eternl wallet via a Javascript code in my browser based dApp. I'm hoping I can do this in a manner in the same way Eth devs do it on Ethereum via the ...
Robert Oschler's user avatar
1 vote
1 answer
53 views

Is there a Python Version of Cardano Node-CLI JavaScript Library?

I know JS, but I have other code written in python that I want to use in conjunction with the node. Is there a Python 3.xxxx SDK/Library/Module that will do everything the JS can? Heres what is ...
KryptoKing's user avatar
3 votes
1 answer
50 views

What is the best (and most secure) way to store private keys in an Express server?

I'm working on a server that will have access to a specific wallet that hold funds and NFTs to submit transactions. Therefore, it will have to manage private keys. I'm thinking of storing them ...
Falcon Stakepool's user avatar
0 votes
1 answer
66 views

How to loop through multiple pages of blockfrost api in Javascript

I'm trying to count the assets at a blockfrost api endpoint. It only shows 100 items on a page though. How do you loop through all the pages and extract the asset count? Thanks for any help. const ...
Murray's user avatar
  • 13
1 vote
1 answer
176 views

How to get NFT count of wallet address

I'm wanting to display the NFT count of a wallet on my website. I've gone through the blockfrost SDK and I don't see anything that relates to NFTs. Is there a method to return this value? Here is my ...
Murray's user avatar
  • 13
1 vote
1 answer
216 views

Create transaction serialization-lib > version 10

I'm using cardano-serialization-lib ^9.1.2 to create transaction. I'm using method that are now deprecated in version 10, so is there an example of transaction with serialization-lib latest version ...
albrizzi's user avatar
0 votes
1 answer
564 views

How to Get Started with Cardano Native Script

What resources should you use to learn native script and in what order should you use them in?
KryptoKing's user avatar
4 votes
2 answers
364 views

Cbor address to bech32 type address in JS or python

I have managed to retrive a user address from a dapp connector wallet using JS: api_promise = window.cardano.{wallet}.enable(); api_promise.then(function(api) { addr_promise = api.getUsedAddresses();...
Lokinou's user avatar
  • 151
1 vote
0 answers
50 views

How Do I Deploy a Plutus Contract From the Browser?

I want the user to go to my website and enter some details into a form. This data should then be converted into an input for my parameterised smart contract (written in Plutus). I can do the website ...
KryptoKing's user avatar
1 vote
2 answers
165 views

Javascript assetName Decoding

I'm trying to figure out a reliable way to decode an assetName using JavaScript. My current implementation is this: function hexToBytes (hex) { if(!hex){ return hex; } else { ...
Casey Gibson's user avatar
1 vote
0 answers
52 views

Nodejs Native token transaction

I am looking to build a native token transaction in nodeJS using either Cardanocli-Js or Cardano-wallet js but the documentation is massively lacking can anyone give me an example i can look over to ...
Jean-marc melanie's user avatar
2 votes
2 answers
803 views

How can I use cardano-serialization-lib in the browser to decode CBOR?

I'm building a simple website with pure HTML and JS (no React, Angular, etc.). I use Nami to connect to a Cardano wallet and use the Nami's cardano.getBalance() method to get the balance of the wallet....
eddex's user avatar
  • 3,580
1 vote
1 answer
397 views

cardano-serialization-lib-browser loaded as empty module in NextJS

I'm trying to use cardano-serialization-lib in a NextJS project I'm working on, but I'm receiving an exception before initializing the application TypeError: Cannot read properties of undefined (...
Mateus's user avatar
  • 958
3 votes
2 answers
287 views

Programmatically creating the policyid / scripthash in Javascript (Browser)

I'm looking for a Javascript implementation of the CLI's cardano-cli transaction policyid function, can anyone point me in the right direction here? Trying to replicate it with blakejs (https://github....
sean's user avatar
  • 1,453
1 vote
2 answers
138 views

Bad inputs, value not conserved

I have a build raw command witch worked very well. But the issue occured when i received some ada for testing purposes when i run cardano-cli query utxo --address $address --testnet-magic 1097911063 i ...
bill.gates's user avatar
1 vote
3 answers
152 views

Burn token using blockfrost java sdk?

Does anyone have an example how to burn a NFT using the blockfrost.io java SDK or Javascript SDK? Thanks a lot in advance.
AlexDev's user avatar
  • 11
9 votes
5 answers
1k views

How can you listen to all incoming transactions of a wallet address?

For a web app, I'm wondering is there an API/SDK that enables you to execute some code every time an address receives ADA, NFT, or native token? The wallet address receiving does not change. If not, ...
KronosXekri's user avatar
3 votes
2 answers
327 views

Having a problem with Minting with Cardanocli-js

Im creating a transaction using this code: const tx = { txIn: wallet.balance().utxo, txOut: [ { address: wallet.paymentAddr, value: { ...wallet.balance().value, [MARCELOCOIN]: 1 }, } ], ...
Marcelo Arraes Teixeira's user avatar
4 votes
4 answers
430 views

How to talk to Cardano blockchain using Javascript

How would I go about making a Javascript script which can get information from the cardano blockchain. Like what library or framework can I use.
isuryanarayanan's user avatar
5 votes
1 answer
338 views

Blockfrost, GrapgQL or any API for cardano help, working with javascript

I am building an MERN stack app cardano dex tool, I want to use Blockfrost. I have installed the SDK in Node.js backend, but there are only very few examples on how to get any kind of data from it. ...
Skinsky Gnudy's user avatar