Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 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 ...
user avatar
  • 3
0 votes
1 answer
33 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 ...
user avatar
  • 3
0 votes
1 answer
62 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 ...
user avatar
0 votes
1 answer
93 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?
user avatar
3 votes
2 answers
93 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();...
user avatar
  • 141
0 votes
0 answers
25 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 ...
user avatar
1 vote
2 answers
61 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 { ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
1 vote
2 answers
447 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....
user avatar
  • 3,026
1 vote
1 answer
233 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 (...
user avatar
  • 723
3 votes
2 answers
180 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....
user avatar
  • 939
1 vote
2 answers
86 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 ...
user avatar
  • 111
1 vote
3 answers
121 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.
user avatar
  • 11
7 votes
5 answers
812 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, ...
user avatar
3 votes
2 answers
270 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 }, } ], ...
user avatar
4 votes
4 answers
319 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.
user avatar
5 votes
1 answer
243 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. ...
user avatar