Questions tagged [cardano-cli]

The official command line interface to interact with a Cardano node.

Filter by
Sorted by
Tagged with
1 vote
2 answers
78 views

cardano-wallet vs cardano-cli for an application

I'm creating an application and was trying to figure out whether to use cardano-wallet or cardano-cli for my product. I like the fact cardano-wallet has endpoints & is very easy to setup, although ...
0 votes
2 answers
90 views

Is it possible to generate all stake pool files and keys using Cardano Serialization Lib?

To successfully create and register a stake pool, we are require to generate: Payment keys and address Stake keys and address Stake pool cold key Stake pool hot key Stake pool VRF key Stake pool ...
1 vote
2 answers
116 views

find holders from same policy but different asset name

I have a policy ID with hundreds of NFT with different asset name (for eg TTS19, TTS20, etc) what is the easiest way to find all addresses/wallets which have this NFT(holders)? I tried with koios and ...
  • 321
0 votes
1 answer
171 views

Plutus transaction error PT5

I am building a transaction where I use the following function to make my datum and redeemer, writeJSON :: PlutusTx.ToData a => FilePath -> a -> IO () writeJSON file = LBS.writeFile file . ...
  • 1,737
4 votes
1 answer
205 views

How do I make a Sidechain

I want to make a side chain on Cardano to so something that the protocol says should be done on a sidechain, but how do I make one? Can I use Plutus or am I limited to the CLI?
2 votes
1 answer
188 views

Is it possible to get root key from CLI generated private key?

Objective To load a private key generated by cardano-cli into cardano-serialization lib Details Using cardano-cli cardano-cli address key-gen, we get this: { "type": "...
  • 123
0 votes
1 answer
37 views

Is it possible to specify a Windows named pipe for Daedalus?

I'm on a Windows machine and would like to use cardano-cli to interact with the Cardano network. I have Daedalus running which is running an instance of cardano-node. In order for the CLI to find the ...
0 votes
0 answers
42 views

I got error while building package plutus-core-0.1.0.0 when installing cardano-wallet using stack

I'm using MacOS Monterey with M1 chip and trying to install cardano-wallet. I've already installed pre-requisites cardano-node and cardano-cli no problem, and already synced with the testnet. I was ...
3 votes
1 answer
320 views

How to delegate to a stake pool using CLI?

Using any graphical based wallet it's trivial to delegate to a stake pool. How do you accomplish this same task using only CLI tools (e.g. cardano-cli)?
  • 31
2 votes
1 answer
52 views

What can certificate scripts do?

While looking through the options of the cardano-cli transaction build options I saw the options, --certificate-file CERTIFICATEFILE Filepath of the certificate. This ...
  • 1,737
3 votes
2 answers
309 views

Plutus datum and redeemer on cardano-cli

I'm trying to deploy a smart contract on cardano-cli after its implementation on plutus playground. Imagine that I have: data TradeDatum = StartBid | Bid TradeDetails | Offer TradeDetails ...
  • 91
1 vote
1 answer
55 views

cardano-cli transaction build script (NFT Contract Address Creation)

I am trying to send a market.plutus file to test a NFT marketplace to mainnet. I am building the transaction here like this: cardano-cli transaction build --alonzo-era --mainnet --tx-in $UTxO-...
1 vote
1 answer
36 views

transaction sign from 2 different wallet to unknown wallet

i have 2 wallet in my node, each one hold different Asset and ADA. i want to sign a transaction with "cardano-cli transaction sign" command, using 2 times the "--signing-key-file " ...
  • 321
1 vote
1 answer
190 views

How to see the local node's mempool?

I'm building a few applications and am running into scaling issues. Occasionally a lot of transactions need to be submitted, sometimes even chained, but generally it's simply splitting an incoming ...
0 votes
1 answer
534 views

CARDANO_NODE_SOCKET_PATH Error

I am trying to run my own cardano node and use cli wallets. When I run this command: cardano-cli query tip --mainnet I am getting the following error: Command failed: query tip Error: Error while ...
1 vote
0 answers
40 views

Cardano Wallet - Using existing wallet and/or address generated from cardano-cli

I'm kinda new in blockchain / crypto world (also Cardano world) and still learning things around. Already setup cardano-node with cardano-wallets properly, both working good with testnet, by following ...
  • 55
1 vote
1 answer
61 views

Get UTXO or tnx hash from nami Collateral

I am using the function cardano.getCollateral() in the nami wallet library which gives me the utxo of a collateral, lets say it is: "...
2 votes
2 answers
101 views

Is the daedalus wallet seed phrase caps sensitive?

I noticed my written down recovery phrase you can't really tell between caps and not caps and I have specifically drawn an arrow to "no caps" on a B on one sheet and some of the words that ...
  • 21
1 vote
2 answers
326 views

How to install cardano-node and cardano-cli on Mac M1

I tried to install cardano-cli and cardano-node using this documentation and stuck on below step mkdir -p $HOME/.local/bin cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/ cp -...
  • 9
0 votes
1 answer
177 views

Cardano-cli error: "Invalid argument `"type":'"

I'm new and I'm following cardano developers tutorial to create NFT. I arrived at some modified code for what I wanted to do. But get this "Invalid argument `"type":'" error. When ...
  • 1
0 votes
1 answer
11 views

How to apply show to TxOutAnyEra datatype from cardano-cli sources?

Example: testTxOut :: IO () testTxOut = do let testInput = "addr_test1vqwvs32x3wg5ea2l5tr7t93hpta8arwxllr4ey96dhl5d7sytaf9n + 1000000 lovelace" case (OutBuilder.getTxOutFrom ...
1 vote
0 answers
33 views

How to get the address which locked the fund on a smart contract?

I have two users. The first user locks 1 ADA with a Datum at a script address. The second one unlocks the 1 ADA with the same Datum and should now send 5 ADA to user one. Can I now implement a logic ...
0 votes
1 answer
29 views

How to check whether my two pubkeyHash is different or not using Haskell?

I'm using this script to check but this doesn't works for me import Prelude hiding (Eq) mkPolicy :: PubKeyHash -> PubKeyHash -> TokenName -> BuiltinData -> ScriptContext -> Bool ...
1 vote
2 answers
109 views

relationship between seed phrase, wallet address, public key, UTxO, verification key, and signing key

Everything I read about cryptography talks about a "public key" and a "private key". However, the Cardano CLI reality appears more complex. As I understand it, the 24 word seed ...
  • 349
0 votes
1 answer
47 views

What is the exact transaction lifecycle?

Something which is still fuzzy to me. What is the exact transaction lifecycle? What happens after we submit a transaction via the cli? Does the transaction get broadcasted to the nodes directly for ...
1 vote
1 answer
567 views

cbor encode and decode

hope you all are doing great. I am looking for a way to encode and decode the cborHex. I've done the following: cardano-cli text-view decode-cbor --in-file wallet.vkey --out-file tx.alonzo and I get ...
  • 11
0 votes
0 answers
84 views

in plutus-pioneer-program iteration 3 not able to use --required-signer-hash in grab.sh so causing beneficiary's signature missing error (if remove)

Invalid option `--required-signer-hash' Usage: cardano-cli transaction build [ --byron-era | --shelley-era | --allegra-era | --mary-era | --alonzo-era ] [ --shelley-mode | --byron-mode [--epoch-slots ...
1 vote
1 answer
66 views

Missing datums in db-sync

From time to time I encounter transactions which contain UTXOs associated to script addresses with datum hashes for which no corresponding entries are available in the datum table of a fully-synched ...
  • 113
0 votes
1 answer
296 views

How to generate TransactionBody in cardano-serialization lib from cardano-cli's TxBodyAlonzo cborHex

I want to get cborHex from cardano-cli transaction build output and use it with cardano-serialization-lib to recreate the transaction body. I tried the following: cborHex = '...
  • 439
0 votes
2 answers
197 views

How to combine or spend the rest of utxos

I have several utxos in my cardano wallet address created via the cardano-cli that have 1-4 ADA each. Some utxos have an NFT associated with them. Is there a way to spend the rest of several utxos in ...
  • 167
2 votes
2 answers
429 views

How to recover a wallet in cardano-cli from a 24-word mnemonic

I have a wallet created with Daedalus and have the 24-word mnemonic available. I would like to use the same wallet with cardano-cli in order to build and submit more complicated transactions directly ...
2 votes
1 answer
109 views

Submitting a transaction from cardano-cli with Nami Wallet

I am aware that there is an issue regarding the fact that serialization-lib and cardano-cli are not compatible Converting the array into a Map is not the solution because in my case I also have the ...
0 votes
2 answers
67 views

Can Queries To the Chain be made From Plutus Smart Contracts?

Considering that Plutus Smart Contracts have two parts (on chain and off chain) is there a way to make Queries to the Cardano Chain in the onchain part of the contract considering that the SC is ...
2 votes
0 answers
116 views

How can I execute a SundaeSwap transaction from the Cardano-CLI?

Goal I want to be able to use the cardano-cli to swap some tokens on SundaeSwap. What I have Working local cardano-node cardano-cli What is missing If I understood this correctly (please correct me ...
  • 3,480
1 vote
1 answer
203 views

How to derive non-extended skey from mnemonic phrase?

See title. I've tried using https://github.com/input-output-hk/cardano-addresses to derive the skey, but it only gives an extended version that I'm unable to sign transactions with using the CLI. ...
0 votes
1 answer
247 views

Command failed: transaction submit Error: Error while submitting tx

I have minted a token to the testnet and now i want to sent it to deadalus testnet wallet but i am getting error. And the steps which i am following is this. Make a transaction cardano-cli transaction ...
2 votes
3 answers
105 views

Error Reading metadata while trying to mint token

I am trying to mint the token using this command. to testnet. cardano-cli transaction build-raw \ > --fee 188865 \ > --tx-in 540f0a1e27b64da69059d8b5ff22c542a53d31d5f01fedc6a0094879efb7152d#0 \ &...
0 votes
1 answer
67 views

Error when minting with CLI

I tried to follow Lars' instructions on minting with CLI and I get the error below. I did not modify cabal.project. Any idea what goes wrong? ./mint-token-cli.sh ...
0 votes
1 answer
47 views

Failed to build Diff-0.4.0 (why?)

| 18 | import Data.Monoid (mappend) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/bin/ld.gold: error: cannot find -lgmp collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: ...
  • 1
0 votes
1 answer
109 views

How to format a JSON value in the cardano-cli

I started creating this python library with most of the Plutus types represented as classes. I get their values by calling the json method, which returns the JSON equivalent of this type so it can be ...
  • 948
0 votes
1 answer
80 views

Plutus function TxSIgnedBy - transaction build Error: The Plutus script evaluation failed

I'm trying to use Plutus function txSignedBy with a transaction involving the usage of cardano-cli I first sent some UtxO to my script address, with a datum whose structure is like this: data ...
0 votes
1 answer
185 views

Unable to send funds from a Byron-era wallet created with Daedalus back in 2017

This is not a situation that happened to me personally, so I am sorry upfront if I can't provide all the necessary information, but I am trying to help recover money from a wallet that has been ...
  • 101
1 vote
1 answer
100 views

How to log/trace/print messages from within the contract ON-chain code, while using cardano-cli?

I'm wondering how to log/print/trace any message during the execution of a contract when submitted to the blockchain via cardano-cli. So basically I hoped this very simple test script would show me ...
1 vote
0 answers
88 views

Calculation cpu and memory exUnits on transaction submit is different then on transaction build?

I am trying to build a non-optimized script and during the cardano-cli build transaction I got an error: Command failed: transaction build Error: The following scripts have execution failures: the ...
  • 439
0 votes
2 answers
110 views

cardano-cli submit error: ScriptWitnessNotValidatingUTXOW

I have a problem when submitting a transaction using cardano-cli 1.33. This is my transaction: cardano-cli transaction build-raw --tx-in ...
0 votes
2 answers
389 views

How to generate script address from plutus script cborhex

I want to generate the address from the plutus script's cborhex value, but so far without much luck. I am using the alwayssucceeds.plutus contract as an example for which the cborhex value is ...
  • 192
1 vote
1 answer
112 views

Yoroi wallet using cardano-cli

I have a cardano-cli/cardano-wallet server set up, and I was trying to load a previously created Yoroi wallet by using the 12 word pass phrase, but it seemed like it created a new wallet instead of ...
0 votes
1 answer
34 views

Run a node virtually that can be accessed from different machines

I am trying to run a cardano node, however I am not sure of the best way to go about it. My goal is to create a cardano wallet through python on my own machine. I want to run a cardano node on a VM, ...
  • 50
2 votes
2 answers
75 views

How do I set txInfoValidRange on the testnet using cardano-cli

How does txInfoValidRange get set on the testnet? I've been made aware that on the Plutus Playground a piece of off-chain code: "Constraints.mustValidateIn (from now)" will set ...
0 votes
2 answers
123 views

How to decode output of cardano-cli query ledger-state?

Running cardano-cli query ledger-state --mainnet --out-file out produces a binary file. What format is it in? How can I decode it? I cannot use the command without --out-file out because of memory ...
  • 101

1 2
3
4 5
7