Questions tagged [javascript]
The javascript tag has no usage guidance.
24
questions
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 ...
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?
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/
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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();...
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 ...
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 {
...
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 ...
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....
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 (...
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....
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 ...
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.
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, ...
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 },
} ], ...
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.
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.
...