Questions tagged [cardano-cli]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

cardano-wallet for pab-local-cluster

Does anyone have an example of how to execute the cardano-wallet CLI for the pab-local-cluster in plutus-apps (tag: v2022-01-17)? I can get access to to the local wallet server APIs, but I need the ...
1
vote
1answer
84 views

Received the transaction id but the transaction never happened

I used to work with Blockfrost API to submit my transactions. A few days ago, I ran into this problem in which my transactions were submitted successfully (The API returned me the transaction id ...
1
vote
3answers
33 views

send token / asset by cardano-CLI

i am looking so long, but till now didnt find a complete answer about : how to send a token / asset from cardano-cli. can you please help me to go in details about build the transaction from the CLI ? ...
1
vote
1answer
17 views

How can I derive the Staking address from a Payment address?

If someone provides me with a payment address, how can I derive the staking address from the payment address? This can be useful for example when we want to sent rewards to the people in return for ...
1
vote
2answers
33 views

[Congestion ]Transaction submitted but never get processed

I have an issue on which I have been stuck for 4 days since the release of Sundaeswap and the congestion of the network. I have my own node on the mainnet. I have the same on the testnet and ...
1
vote
1answer
35 views

Figure out transaction id after submitting using cardano cli

It's possible to submit transactions using cardano cli. Here is an example (assumes you have gone through the steps to build the tx): cardano-cli transaction submit --tx-file matx.signed --mainnet I ...
0
votes
1answer
20 views

1.33.0 cardano-cli query stake-snapshot does not generate json

I'm trying to generate leaderlogs on cardano-node 1.33.0 when i try to query the stake snapshot with cardano-cli query stake-snapshot --stake-pool-id ...
0
votes
1answer
17 views

How to connect WSL cardano-cli to Daedalus cardano-node on Windows?

I have the Daedalus wallet/node desktop app installed on Windows 10. And I also have the cardano-cli set up on WSL2 Ubuntu 20.04. How can I point my WSL cardano-cli to the cardano-node that's inside ...
0
votes
2answers
53 views

Change Address in transaction

I made an address with cardano-cli (here) and I funded it from my Yoroi wallet, but I don't know where this change address came from. Shouldn't the change address be the input itself or Am I missing ...
0
votes
1answer
36 views

How to build a script transaction if the validator expects it to be signed

Given the following smart contract: {-# INLINEABLE mkValidator #-} mkValidator :: PubKeyHash -> BuiltinData -> ScriptContext -> Bool mkValidator beneficiary _ ctx = traceIfFalse "tx ...
0
votes
3answers
60 views

How to pass TxOutDatumNone when building a script transaction with cardano-cli

I'm trying to consume a UTxO from a script address. When querying the script address with cardano-cli query utxo, I have the following UTxO: TxHash ...
0
votes
1answer
30 views

Embedding address into the datum using the CLI

I have a validator that uses Address in datum. I also have an address generated (payment.vkey, payment.skey, payment.addr, stake.vkey, stake.skey, stake.addr). I'm able to get PubKeyHash using command ...
7
votes
2answers
133 views

Is there complete cardano-cli documentation?

Hello all I can find is the cardano-cli help and https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/cardano-node-cli-reference.md/ I am trying to get information on things like ...
0
votes
2answers
78 views

Sign transaction with multiple inputs

I built a transaction with cardano-cli shelley transaction build-raw command that has multiple inputs. I have the private keys and .skey files of these addresses but I don't know how to sign the ...
0
votes
4answers
51 views

submitting transaction FeeTooSmallUTxO

So I have a basic script that attempts to transfer everything from 1 address to another. In order to correctly conserve and to spend the minimum fee, I just build a transaction that uses 100% of the ...
5
votes
1answer
168 views

Transaction memory and cpu usage limits

Let's imagine I have AlwaysSucceeds Plutus validator script, which is: mkValidator :: Params -> Datum -> Redeemer -> ScriptContext -> Bool mkValidator _ _ _ _ = True I locked many ...
1
vote
2answers
122 views

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

Using a DigitalOcean Ubuntu droplet, I have: successfully installed cardano-node according to: https://developers.cardano.org/docs/get-started/installing-cardano-node/ cardano-cli 1.32.1 - linux-...
1
vote
1answer
52 views

get wallet skey/vkey from mnemonic

I am trying to get the skey, vkey and address of the first payment address in a wallet I created in cardano-wallet. I need them because I would like to make transactions with cardano-cli on the same ...
3
votes
1answer
109 views

Transaction fee

Doesn't the transaction cost increase with the increase of Cardano price? Is there a way to keep the transaction cost constant while raising the price of the Cardano token?
0
votes
2answers
33 views

cardano-cli transaction build-raw error

I've minted 1,000,000,000,000,000 SLIME coin following this guide https://developers.cardano.org/docs/native-tokens/minting/#prerequisites but I'm getting an error at the "Sending tokens to a ...
1
vote
1answer
60 views

About building a transaction using the cli

I've been following this guide https://developers.cardano.org/docs/native-tokens/minting to mint some native tokens but the process of sending native tokens to an address that has multiple UTXOs when ...
1
vote
2answers
64 views

How to run a Cardano relay instead of a full node?

I want to start a relay node not run the full cardano node. There doesn't seem to be any tutorials for starting a relay node. Anyone know how can i just a lightweight relay node so that I can run ...
0
votes
2answers
66 views

How to check the NFT timelock status?

How can I check the NFT timelock status, besides pool.pm?
0
votes
1answer
81 views

How to stop cardano-node from the CLI?

What is the command or process to gracefully stop a cardano-node instance from the CLI?
1
vote
2answers
128 views

Tx signed by Nami Wallet returning InvalidWitnessesUTXOW in CLI

I am attempting to sign and submit a simple "always succeeds" transaction body built by the CLI and signed with nami wallet. cardano-cli transaction build-raw \ --alonzo-era \ --fee 200000 \ ...
0
votes
2answers
59 views

Best practice for updating cardano-node/cli?

I'm using a Linux VM on AWS and followed this guide: https://developers.cardano.org/docs/get-started/installing-cardano-node to install everything. What's the best way to go about updating the node ...
0
votes
0answers
13 views

queryUtxo returning empty array when using variable string

I'm trying to query an address I just made, I'm using this function cardanocliJs.queryUtxo(nft.address) and I'm getting an empty array as a result when I print it. nft.address is a new wallet address ...
0
votes
1answer
109 views

cardano-cli transaction submit example with native assets

I'm having trouble using the cardano-cli to send one tx. I have one address with 9 ADA and 10,000,000 each of two tokens with the same minting policy and I want to send 5,000,000 ADA of each token to ...
0
votes
2answers
96 views

Why does 'cardano-cli query utxo --address $address --mainnet' return an empty list?

I'm trying to list all the utxo's at my Yoroi wallet address. I set the variable 'address' as my receiving address but when I run the command, cardano-cli query utxo --address $address --mainnet, ...
0
votes
0answers
92 views

hi, can't register timelock nft. Tested on pool.pm "Not Found

bother again. try to create nft, now can go up blockchain is now available, but can't register timelock nft. Tested on pool.pm "Not Found", I don't know What more needs to be done? Thank. ...
1
vote
2answers
56 views

How to get PubKeyHash of an address without vkey?

How to get Address -> PubKeyHash without vkey just with addr like addr_test1wrf230u95zr26lut09mchmt82d235v6335jvszme2jevklslg5lfz? It must be possible, because when you build unlocking transaction ...
4
votes
2answers
82 views

How do I read the datum of an output?

How do I get the datum of an output from cardano-graphql (or another service)? I have attached it using the --tx-out-datum-embed-file flag already when building the tx using cardano-cli. Thanks!
1
vote
1answer
78 views

how to build new transaction based on the UTXO with NFT token?

I'm using test net. Currently, I've got the UTXO with minted token made by the simple cardano-cli tool for that. At first step it looked like: cardano-cli transaction build --alonzo-era --testnet-...
1
vote
1answer
80 views

How to correctly build transaction using PubKeyHash or CurrencySymbol as Datum parameter in cardano-cli?

My validator script expects PubKeyHash and Currency symbol parameters in Datum. I wrote a script that compiles validator script to plutus and also forms Datum JSON parameters, as well as Redeemer ...
1
vote
2answers
58 views

How does one check a pool's delegation history?

How does one view addresses that were staking with a specific pool at a specific epoch boundary? If there is any way to view a list of addresses that received staking rewards for a particular block, ...
2
votes
1answer
85 views

Validator fails comparing two (assumed equivalent) PubKeyHashes

I have a simple validator script that checks if a transaction is signed by a specific public key with the hash: 12f2f3e44e6e310abc78802d7078ec1fd0fa220ff47ad1bdb43397e2 {-# INLINABLE getHolder #-} ...
0
votes
1answer
35 views

cardano_serialization_lib + GeneralTransactionMetadata error

help const METADATA = { [policy.id]: { [name.slice(0,32)]: { ...inputData.metadata } } } const generalMetadata = Loader.Cardano.GeneralTransactionMetadata.new() generalMetadata.insert( Loader.Cardano....
0
votes
1answer
30 views

Check total ADA delegated to the pool with cardano-cli

I'm running the stake pool and want to know the delegators count and total amount of ADA delegated to my pool. Is there a way to do that from my producer/relay node using cardano-cli? I know this info ...
0
votes
1answer
32 views

Generate list of payment addresses using CardanoCLI-JS

I am trying to generate a list of (unused) payment addresses with CardanoCLI-JS, but how to do it? const wallet = cardanocliJs.wallet("Main"); const address = cardanocliJs....
0
votes
2answers
104 views

How to send a native token using the cardano-cli?

What are the steps required to build and send a transaction meant to send for example 10,000 tokens to some given address?
1
vote
1answer
77 views

Dapp connector for cardano-cli wallets

I've read about the Yoroi dapp connector, but is there a way to connect a wallet which was created with cardano-cli to some dapp?
0
votes
1answer
65 views

Back-to-back transactions produce ValueNotConservedUTxO error

I recently wrote some scripts that mint and send tokens. When I run the script to mint a token and then immediately run the script to send that token to a wallet, I get this error: Error: Command ...
1
vote
3answers
258 views

how can i show my minted NFT images on cardano testnet

this my minted nft address https://testnet.cardanoscan.io/transaction/38415ba47ba757b5ccb7240962fc064be56850b19f820e9a837aeed6e56e8081?tab=utxo Now i wants to show these minted NFT Images to any ...
0
votes
1answer
128 views

The Plutus script evaluation failed

Running into this error when attempting to build a tx. Command failed: transaction build Error: The following scripts have execution failures: the script for transaction input 1 (in the order of the ...
0
votes
2answers
68 views

Build transaction script ERROR in cardano .Not support the policyid with tokenname

this is my transaction build script cardano-cli transaction build --mainnet --alonzo-era --tx-in $txhash#$txix --tx-out $address+$output+"$tokenamount $policyid.$tokenname" --change-...
0
votes
1answer
53 views

Cardano-cli errors when submitting

I can build and sign a tx with no errors using: cardano-cli transaction build --alonzo-era \ --testnet-magic 8 \ --tx-in 20445d5c68e1759f1371a86ecca773b76463fba3831f128fd2f7834de38ae6ec#0 \ --tx-in ...
2
votes
1answer
52 views

Will the size of transaction be affected if the same input script is provided multiple times for different utxos?

If there are multiple --tx-in-script-file for the same plutus script file only with different utxos is that means that multiple times will be sent plutus script and that will affect the size of a ...
2
votes
2answers
110 views

How does custom Plutus data type map to cardano-cli --tx-in-datum-file content?

Let's say I have validator, which checks datum against two numbers, hash, time and a string and there are some funds locked at this script address and I would like to unlock these funds using cardano-...
2
votes
1answer
167 views

How to lock funds in a smart contract?

What I want to do: Send 25 ADA and lock it all at the script address until 1 of the 2 scenarios happen: 100 ADA is sent by Nov 25th (today is Nov 20th) and all ADA at the script address is sent out ...
3
votes
2answers
113 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....