Hot answers tagged

22 votes

How can a developer access the Cardano network?

If you use Nix or NixOs, it is rather straightforward: Build the code for a cardano node using nix (link to current documentation) Duplicating the official documentation: git clone https://github.com/...
Stephane Rolland's user avatar
13 votes
Accepted

How can a developer access the Cardano network?

There are also ways to use services where you can make API requests to interact with the Cardano blockchain. (without the need to run your own cardano-node) You could for example sign in on Blockfrost ...
adatainment's user avatar
  • 1,092
10 votes

How can a developer access the Cardano network?

Generally, there are several options you could pursue. Start a stake pool on test-net and then launch one on main-net. How to build a Cardano Stake Pool. Get involved with project catalyst. Offer ...
OakAndClay's user avatar
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 (...
LACE pool's user avatar
  • 619
7 votes

Nami wallet showing getBalance returning a NaN

getBalance function returns cbor encoded hex string, so you should actually decode it. Easiest way to do it is by using Cardano Serialization Lib. After you've downloaded the library you can decoded ...
pyropy's user avatar
  • 641
7 votes
Accepted

Cardano Serialization Lib Usage

Generally I think you can say the point of the serialization lib is to help you manage the off-chain aspects of preparing transactions before you submit them to the network. It's a standalone library ...
sean's user avatar
  • 1,463
6 votes
Accepted

What are the security implications to having cardano-wallet run on a public server?

In most cases, you should never manage users wallets with a hosted service. The whole point of a decentralized blockchain is that users are managing their own assets. The best practice is to generate ...
Marek Mahut - StakeNuts's user avatar
6 votes
Accepted

Is there an API for Cardano Blockchain Insights?

If you don't want to run a node or services yourself you can use https://api.koios.rest/#overview If you run your own node or are friendly with someone who does you can use DB-Sync. DB-Sync is a ...
MC_Brisbane - JUST Pool's user avatar
4 votes

Are there any API's I can integrate with to accept Cardano as a merchant?

To answer my own question, you can currently use https://nowpayments.io/, https://adapay.finance/, or to roll your own solution https://blockfrost.io/. There's also an ongoing petition to get Cardano ...
Blake Brown's user avatar
4 votes
Accepted

Are there any Java APIs allowing to make applications on top of Cardano?

Yes, try cardano-client-lib SDK written in Java.
Marek Mahut - StakeNuts's user avatar
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/
Medardas's user avatar
  • 141
4 votes
Accepted

Received the transaction id but the transaction never happened

The chain has been pretty congested since sundaeswap launched. It may take some time between transaction submission and inclusion into a block. If your TTL or --invalid-hereafter parameter is too ...
zhekson's user avatar
  • 3,629
4 votes
Accepted

I hear that Daedalus Is a Full Node Does That Mean I Can Set Up a DB Sync Server On Top of It?

Daedaldus consists of two processes, cardano-node and the wallet itself. Yes, it is possible to connect a db-sync instance to the cardano-node.
Erik de Castro Lopo's user avatar
4 votes
Accepted

How to securely call Blockfrost or other API service from Smart Contract?

You can't call API services directly from the smart contract, and this is not something that the "IOG has yet to put that functionality in"; the same behaviour is not possible in any other ...
Michele Nuzzi's user avatar
3 votes

Is there a publicly available Cardano API with pre-indexed blockchain data?

Yes, have a look at blockfrost.io an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem.
Marek Mahut - StakeNuts's user avatar
3 votes
Accepted

How do I get the http endpoint to work for cardano-wallet?

By default cardano-wallet listens on loopback ip only - 127.0.0.1, to listen on server external ip, you need to add --listen-address parameter So at the end command should be: cardano-wallet serve \ ...
os11k's user avatar
  • 396
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 $(...
Fermat's user avatar
  • 1,862
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 "...
leobelizquierdo's user avatar
3 votes
Accepted

Is there an API or website where I can see all addresses that hold a specific native token/asset?

You are probably looking for the Blockfrost.io's /assets/{asset}/addresses endpoint that lists all addresses containing a specific asset.
Marek Mahut - StakeNuts's user avatar
3 votes

How to get all NFTs of a wallet address?

Try the /accounts/{stake_address}/addresses/assets call using Blockfrost.
Marek Mahut - StakeNuts's user avatar
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 ...
Marek Mahut - StakeNuts's user avatar
3 votes

Storing Secrets in Smart Contracts

I think, this I not possible. If you want your smart contract to know about your balance or any off-chain fact (including random numbers), then you need to push this fact either to the blockchain or ...
Jey's user avatar
  • 1,549
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?
jnprogrammer's user avatar
3 votes
Accepted

Blockfrost assets api issues

Let's take this asset as an example: https://pool.pm/0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04.unsig26071 Policy ID: 0e14267a8020229adc0184dd25fa3174c3f7d6caadcb4425c70e7c04 Asset name:...
eddex's user avatar
  • 3,753
3 votes

How can i generate new wallet address using cardano-wallet cli and cardano wallet api after created my wallet?

Once you have your cardano-wallet runnig, you can create a new wallet using CLI with the following command: $ cardano-wallet wallet create from-recovery-phrase "My Wallet" Please enter a 15–...
Marek Mahut - StakeNuts's user avatar
3 votes
Accepted

Fetching exchange prices via an API?

MuesliSwap does provide some API endpoints that you could look into: https://docs.muesliswap.com/cardano/api There's a ticker that provides "24-hour pricing and volume summary for each market ...
sean's user avatar
  • 1,463
3 votes
Accepted

Is the Transaction Hash from block frost the same as the transaction id?

Yes, the tx hash and tx id are the same. The terminology is getting used interchangably.
lambda's user avatar
  • 804
3 votes
Accepted

Is it MuesliSwap the only DEX with an API?

Minswap uses a GraphQL endpoint that you can find here: https://monorepo-mainnet-prod.minswap.org/graphql/ Example: curl --request POST \ --url https://monorepo-mainnet-prod.minswap.org/graphql/ \ ...
eddex's user avatar
  • 3,753
2 votes

How can i generate new wallet address using cardano-wallet cli and cardano wallet api after created my wallet?

Do you mean something like that? # generate keys cardano-cli address key-gen --verification-key-file payment.vkey --signing-key-file payment.skey # build address from pubkey cardano-cli address build -...
wutzebaer's user avatar
  • 691
2 votes

How to create and sign a transaction on a mobile device?

Yes, sure, you can use Emurgo's serialization library to create the transactions and Blockfrost's Swift 5 SDK to submit it and fetch Cardano blockchain data. Yoroi-mobile project might be an ...
Marek Mahut - StakeNuts's user avatar

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