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 (...
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/
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 ...
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 $(...
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
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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
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
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
Related Tags
javascript × 16cardano-cli × 6
api × 4
cardano-serialization-lib × 4
nft × 3
blockfrost × 3
cbor × 3
native-assets × 2
plutus × 1
smart-contract × 1
plutus-pioneer-program × 1
daedalus × 1
transaction × 1
minting × 1
python × 1
script × 1
policy × 1
graphql × 1
burn × 1
blake2b × 1
java × 1
native × 1
webapp × 1
nami-wallet × 1
reactjs × 1