Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 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 ...
3 votes
1 answer
41 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 ...
0 votes
1 answer
25 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 ...
  • 3
0 votes
1 answer
89 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 ...
  • 3
1 vote
1 answer
169 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 ...
0 votes
1 answer
308 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?
4 votes
2 answers
199 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();...
  • 151
1 vote
0 answers
43 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 ...
1 vote
2 answers
107 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 { ...
1 vote
0 answers
40 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 ...
1 vote
2 answers
619 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....
  • 3,313
1 vote
1 answer
325 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 (...
  • 833
3 votes
2 answers
236 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....
  • 1,364
1 vote
2 answers
113 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 ...
1 vote
3 answers
146 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.
  • 11
7 votes
5 answers
905 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, ...
3 votes
2 answers
298 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 }, } ], ...
4 votes
4 answers
374 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.
5 votes
1 answer
282 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. ...