8 votes

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

There are different ways. You can do what jnprogrammer said, or you can run the graphql setup https://github.com/input-output-hk/cardano-graphql providing an entire stack of tools including the API (...
  • 577
5 votes
Accepted

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

I know you are asking for a python library interacting with a node, but let me tell you there is a very comprehensive python library with which you don't need to run a node yourself. You can find a ...
  • 577
4 votes

How to talk to Cardano blockchain using Javascript

While I have not used this API myself, the Blockfrost API has a JavaScript SDK that can do that. There is a free tier.
4 votes

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

I believe this guide would help you out: https://developers.cardano.org/docs/integrate-cardano/listening-for-payments-wallet/
  • 141
3 votes

How to talk to Cardano blockchain using Javascript

Ogmios runs alongside a cardano node and provides a websocket api to sync or query the chain. Documentation is available here. If you don't want to host the node yourself, or want to get up and ...
  • 31
3 votes

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

What info do you wanna get specifically? If it is just the UTXO's at an address and you are running a node then the following script suffices. #!/bin/bash cardano-cli query utxo --mainnet --address $(...
  • 1,505
3 votes

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

All the above solutions can do the job, but you'll end up polling the blockchain on each one. Another solution though is using tangocrypto services. Their webhooks feature will allow you to "...
3 votes
Accepted

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

Using the Blockfrost SDK is pretty straight forward, as in this example: import { BlockFrostAPI } from '../src/index'; async function run() { const API = new BlockFrostAPI({ projectId: 'YOUR ...
3 votes

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

How about running a Cardano node and build a script that queries the target address and produces something consumable by your API?
3 votes
Accepted

How to Get Started with Cardano Native Script

You can find fairly extensive documentation on Cardano Native Script (aka Simple Script) here. In short, you can define a JSON object with a simple set of rules known as scripts to validate operations ...
  • 411
3 votes

Programmatically creating the policyid / scripthash in Javascript (Browser)

Finally got my head around this, thanks to this version in Python: Re-Implementing Policy Hashing in Python by @tycl. Basically we need to Parse the policy (JSON) Follow the CDDL specifications to ...
  • 1,364
2 votes
Accepted

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

I do not know why, but this worked for me this._wasm = await import( "../node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg" :s ES6 notation did not ...
2 votes

Cbor address to bech32 type address in JS or python

You can also use typhonjs used by typhonwallet. It's a Pure JS library not dependent on WASM. Install npm i @stricahq/typhonjs Usage const typhonjs = require("@stricahq/typhonjs"); const ...
2 votes
Accepted

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

See this post, Best setup of your air-gapped offline machine (cold environment)?. Also consider the following https://cosd.com/frankenwallet.
  • 1,505
1 vote
Accepted

How to get NFT count of wallet address

You'll probably need two steps for this. First, fetch all assets at the stake address using this endpoint: https://cardano-mainnet.blockfrost.io/api/v0/accounts/{stake_address}/addresses/assets (...
  • 1,364
1 vote

Create transaction serialization-lib > version 10

You can check the changelog here for some examples and explanations: https://github.com/Emurgo/cardano-serialization-lib/releases/tag/10.0.0 A rough example could look something like this: function ...
  • 1,364
1 vote

Cbor address to bech32 type address in JS or python

First install the npm module: npm i @emurgo/cardano-serialization-lib-browser Then you need a wasm loader module class wasm { async load() { if (this._wasm) return; /** * @private ...
1 vote

Javascript assetName Decoding

cardano-serialization-lib does pretty much everything for building and reading transactions and interacting with the webwallets. Here is how you can extract all the asset names from the a user's ...
  • 160
1 vote
Accepted

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

With the help of Samuel's answer, I have been able to get it running. Some important things I didn't know: import from CDN has to be done with the full url. The library has to be imported inside of ...
  • 3,283
1 vote
Accepted

Programmatically creating the policyid / scripthash in Javascript (Browser)

You can do this using the 10.0 beta version of cardano-serialization-lib which should make it into stable pretty soon (I'm in the process of testing this, you can follow the status on this Github ...
  • 334
1 vote

Bad inputs, value not conserved

Make sure that your tx-hash AND your tx-ix are being updated every time you use the function, especially if change is being sent back to yourself, which would raise the value of your tx-ix
  • 3,254
1 vote

Burn token using blockfrost java sdk?

There is a great post on the Cardano form that goes in-depth on different types of burning methods [1]. Note that these tokens send to such addresses still exists but can't be transferred anymore by ...
  • 1,505
1 vote
Accepted

Having a problem with Minting with Cardanocli-js

All solved with the actualization of the cardanocli-js to the 4.0.1 version. The examples are working great!
1 vote

Having a problem with Minting with Cardanocli-js

The issue which is simple. The command: cardano-cli query utxo --address {address} --mainnet Has changed it's output format recently. It now returns an extra field at the end of each TX. A well placed ...
1 vote

How to talk to Cardano blockchain using Javascript

Nami wallet injects a bunch of functions yo your browser, similar to meta mask: https://namiwallet.io/

Only top scored, non community-wiki answers of a minimum length are eligible