Questions tagged [cardano-cli]

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

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

traceIfFalse not showing in cardano-cli output

I have a minting policy: mkNftValidator :: NftParams -> BuiltinData -> ScriptContext -> Bool mkNftValidator _ _ _ = (traceIfFalse "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ...
  • 143
0 votes
1 answer
10 views

downloading updated versions of cardano-node and cardano-cli

I'm following the instructions here: https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/building-the-node-using-nix.md/ But I'm not sure how to get it to compile the 1.35....
1 vote
1 answer
22 views

How is protocol.json used when minting NFTs?

I'm tinkering with creating NFTs via the cardano-cli. The various "how-to" pages I have found all have me download protocol.json using cardano-cli query protocol-parameters \ --testnet-magic ...
  • 349
0 votes
2 answers
17 views

Get back my funds after a mistaken self transaction on Cardano

I accidentally made a self-transaction with my account and would like to know if I can get it back. As you can see my account here, and this is my self-transaction sent 2 weeks ago. I'm using cardano-...
0 votes
2 answers
19 views

pay collateral with cardano-cli

Followed the guide here to build preprod testnet wallets, was wondering however I can create the collateral utxo with cardano-cli ?
  • 433
0 votes
1 answer
20 views

Cardano-Wallet register a wallet generated by Cardano-cli

I created a Wallet with Cardano-Cli following this instructions: cardano-cli address key-gen --verification-key-file vkf.payment --signing-key-file skf.payment After that I derived the address of ...
0 votes
0 answers
6 views

how to safeguard custodial keys for my api using kms or other services? cardanocli-js

cli js in one of my project it requires me to store verification key file and signing key file inside a folder called priv in order to use the wallet I am wondering it is unsafe to store those keys in ...
0 votes
0 answers
13 views

How to properly interpret Bytestrings (TxMetadata)

In the TxMetadata caradano wallet spec there is this: { "bytes": HEX-STRING } The value must be base16-encoded (a hex string). So, given this from a transaction: "fields": [ { &...
2 votes
1 answer
33 views

Call Martify Smart contract by cardano-cli

I call the martify smart contract by cardano-cli but I've seen the error Command failed: transaction build Error: The following scripts have execution failures: the script for transaction input 1 (in ...
0 votes
1 answer
33 views

Plutus: multiple-utxo withdraw fails, single-utxo withdraw succeeds

A beneficiary tries to withdraw the maximum amount from 2 utxo's of a smart contract in one transaction but that fails. If the beneficiary does it in two steps it succeeds. Why does the first one fail?...
1 vote
0 answers
20 views

Submit transaction with cardano-cli which got built and signed with nodejs-cardano-wasm - formatting error

I am trying to submit a transaction via cardano-cli which got built and signed by a nodejs app using cardano-wasm. I tried the following approach: The result I get from the cardano-cli execution: ...
  • 23
1 vote
1 answer
20 views

Docker - Cant access cardano-cli from other container than cardano-node

I have the following problem: I am running several containers via docker-compose consisting of a cardano-node-container, cardano-db-sync-container (including a postgres-container) AND another ...
  • 23
1 vote
3 answers
23 views

Daedalus for testnets and why not use Mainnet as test environment

Last year I set up a Cardano testnet as part of the Plutus Pioneers program. I'm now using my Daedalus installation to experiment with the cardano-cli, which I am finding much easier, with the added ...
  • 349
0 votes
1 answer
16 views

Transaction error from staking account on cardano

I'm trying to get back my funds from my stake.addr from Cardano but I have this error message: Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ...
0 votes
1 answer
23 views

How to get my stacking funds after to deregistrate on Ada

after creating my pool for 2 weeks on Cardano, I would like to take the funds back to finish my tests. But after the deregistration, I still don't see my funds in my payment address. I was wondering ...
7 votes
0 answers
70 views

Developers are having dismal experience building on Cardano [closed]

When developers get into plutus playground, 10 out pf 10 expect it to work like remix, an IDE. You put a code in. You compile and deploy. And then start interacting with the dApp. All in the same ...
1 vote
1 answer
46 views

Is cardano-cli 1.35.3's calculate-min-required-utxo underestimating?

For minting a token, I compute the minimum amount as follows: cardano-cli transaction calculate-min-required-utxo --babbage-era --protocol-params-file ...
0 votes
0 answers
13 views

Error Minting Native Asset: " unexpected '.', expecting space, letter or digit, white space, "+" or end of input "

I am writing a script to automate minting native assets. Everything works well, up until this point: echo "Building transaction..." cardano-cli transaction build \ --babbage-era \...
  • 1
0 votes
1 answer
22 views

Can't register my stake pool on Cardano (StakeDelegationImpossibleDELEG)

I'm following the official process here on the Cardano tutorial. Firstly, I have to show you I already have the fund here: // cardano-cli query utxo --address $(cat payment.addr) --mainnet ...
6 votes
1 answer
81 views

How to properly start a new Plutus project, from scratch

I'm from ETH's ecosystem and recently just decided to get into Cardano development, specifically Plutus dev work thanks to Demeter.Run, and after going through the Plutus starters on there, I noticed ...
  • 61
0 votes
1 answer
26 views

Can't submit transaction on Ada on Babbage era. BabbageOutputTooSmallUTxO error

I'm following the official documentation to send a transaction but I'm still getting the same issue even after to double checked my protocol.json. Based on the protocol, it's supposed to be "...
1 vote
1 answer
35 views

User error: Caused by: [ (builtin unConstrData) (con data #187b) ] while trying to unlock tokens from contract

hi I am getting this error while trying to unlock tokens from my treasury contract it is already topp up with tokens when trying to unlock with the access token doesn't know the exact reason behind ...
0 votes
1 answer
16 views

Obtain a wallet address from PKH and wallet ID in python?

I need a bech32 wallet address and all that I have is my wallet PKH and a wallet Id. Is there a way to derive that bech32 address in python? Needed to perform queries on blockfrost and find how much ...
1 vote
1 answer
43 views

Network.Socket.connect: <socket: 11>: permission denied error accessing node.socket over shared volume mount in docker

I am putting together an application in docker (compose) that has 2 services: Cardano Node Web Application Both services/containers shares the node-ipc via volume mount, when I try query tip via the ...
  • 121
1 vote
2 answers
68 views

Is pure ADA put in a script address locked up forever?

I was trying out the 'always succeeds' script from the helios tutorial (https://github.com/Hyperion-BT/Helios/blob/main/doc/tutorial_03-always_succeeds.md) and made a mistake in the change address, so ...
3 votes
3 answers
67 views

How do users interact with smart contract?

In plutus playground, there is an example called “Vesting”. In the simulation, users can interact with this smart contract by click on “vest fund” or “retrieve funds”. Now suppose that we compile this ...
1 vote
2 answers
30 views

Importing wallets to cardano-node

when I'm upgrading cardano-node and cardano-wallet, I saved the wallets (.sqlite, sqlite-shm, sqlite,wal files) created in the node (cardano-node/data folder). After upgrading to the new node 1.35.3 I ...
  • 153
0 votes
1 answer
49 views

Use of multi-signature and multi-witness transaction creation

I'm working on a pseudo-centralized product that manages users wallets, protected by multi-signature verification. I want to know if it is possible for me to batch about 50-100 transactions from ...
0 votes
1 answer
71 views

Failed cardano-node build on mac m1

I've followed the installing-cardano-node#macos guide on the developer portal and about 10 things fail to build and all of them are giving me the same error. Cannot specify -O# and --passes=/--foo-...
3 votes
3 answers
91 views

How to turn (compile) “script.hs” into “script.plutus”?

I have a script that is developed in Plutus Playground. It is working well and now I want to deploy it to the Cardano blockchain via cardano-cli. Following this answer, I have to use cabal to turn my ...
0 votes
1 answer
39 views

cardano-cli Command failed: transaction sign Error: Failed to decode neither the cli's serialisation format nor the ledger's CDDL serialisation [...]

I have a CBOR and want to sign the transaction using the Cardano-cli. This is the error I get: Command failed: transaction sign Error: Failed to decode neither the cli's serialisation format nor the ...
1 vote
1 answer
75 views

Can't submit (allegedly) correct transaction

Ok, here we go. First, the balance: $ cardano-cli query utxo --address addr1vx9z6r6pv5g8aprprvjj2jhamsj4szr6j502fk7wkzq6a3sx0736n --mainnet TxHash ...
0 votes
1 answer
36 views

Convert UTxO to hex encoded bytes string

Hello I want to convert a normal UTxO transaction hash to an encoded bytes string. How do I do this? Help would be appreciated! something like ...
0 votes
2 answers
48 views

ScriptWitnessNotValidatingUTXOW while trying to mint NFT in preprod testnet

minting script "type": "all", "scripts": [ { "type": "after", "slot": 155761 }, ...
0 votes
1 answer
24 views

'No Corresponding Policy Script' Error when Script Was Provided

Following the Mintin NFTs IOHK tutorial I end up with the following error when crafting the transaction. Command failed: transaction build Error: The "--mint" flag specifies an asset with a ...
0 votes
0 answers
19 views

What is the purpose of "Extended Verification Key" compared to normal Verification Key?

I've created an extended private key payment0_idx0.xprv and stake0.xprv using cardano-wallet. Then I use cardano-cli to convert those keys to Shelley format and create the Extended Verification Key ...
0 votes
0 answers
70 views

I have a problem in quering the tip of testnet cardano-cli query tip --testnet-magic 1097911063

When I run the command below cardano-cli query tip --testnet-magic 1097911063 I get the problem below cardano-cli: CreateFile "\\.\pipe\cardano-node-testnet": permission denied (Access is ...
0 votes
2 answers
53 views

Get list of holders of a token using Cardano-cli or Cardano-DB-Sync or Ogmios

I am trying to find a way using either Cardano-cli, Ogmios, or Cardano-DB-Sync to get a list of token holders (addresses) for a particularly token, ideally in JSON format. What is the best way to do ...
3 votes
1 answer
143 views

Preview and Pre-Production Testnet Configs

I'm trying to setup Oura with preview and pre-production testnets. Does anyone know what values to use in the config? Here's the data that I've guessed so far based on the cardano-node config files. ...
0 votes
2 answers
65 views

Cardano-node and cli install "llvm error"

I'm facing error with the llvm install, i tried all the llvm@11;12;13 even the 14 and still a come across error when i move to step "cabal build all" my set up is a M1 pro. Help! thank you
1 vote
1 answer
70 views

Cardano-cli requires signing key to be a file, fails with a named pipe

Please see the discussion here. https://forum.cardano.org/t/cardano-cli-signing-a-transaction-without-directly-accessing-the-skey-file-in-plain-text/103742/11 cardano-cli should be able to read ...
0 votes
0 answers
14 views

BP node syncing slightly faster than relay

Currently I am syncing both a BP and a relay node. BP is only connected to my relay, relay is connected to a iohk mainnet node. When running cardano-cli query tip --mainnet in both nodes BP seems to ...
1 vote
3 answers
171 views

How can I calculate slot number?

I need help in calculating Slot Number from Current Epoch and Slot. Is there a formula to calculate that?
1 vote
1 answer
38 views

Errors when building cardano-node as a dependency in my project

I have included cardano-prelude as a dependency in my project's cabal.project file: https://github.com/omefire/api-server/blob/main/cabal.project However, when I try to build the project with cabal ...
  • 411
1 vote
1 answer
27 views

Cardano-node over HTTP? Or as stack/cabal dependency?

Is there a way to include cardano-node as a dependency in my project? (Stack dependency or cabal dependency). I tried and it keeps failing because not all dependencies can be built. Maybe I need to ...
  • 411
0 votes
1 answer
34 views

Can you open a cardano-cli wallet on nami or daedalus?

I'm extremely worried a wallet through cli can be corrupted as i'm using a virtual machine which often crashes and deletes to itself. In other crypto wallets you can insert a secret phrase or a key to ...
  • 1
0 votes
2 answers
60 views

No space left on device, cardano-db-sync to blame?

I'm getting errors when starting up my producer suggesting I'm out of storage. It looks like db/immutable is the culprit taking almost 100g of space. I'm not super familiar with what this db is or ...
0 votes
2 answers
33 views

Cardano-cli Handshake error after Daedalus update

After updating Daedalus for the Vasil hardfork, I get the below error when running this cardano-cli command cardano-cli get-tip --testnet-magic 1097911063 cardano-cli: HandshakeError (VersionMismatch ...
1 vote
2 answers
102 views

after 1.35.0 update: gLiveView Luck and Ideal showing "--"

Hi new stake pool operator here. I'm having an issue after upgrading to 1.35.0. In gLiveView it shows blanks for both luck and ideal and it hasn't minted any new blocks since upgrading. Any thoughts ...
0 votes
1 answer
84 views

Programmatically Send Transactions From a Wallet Using Javascript

I am building an application that has a hot wallet that stores ADA that my user has deposited. After some business logic is met, I want to transfer funds from my hot wallet to another address. How do ...

1
2 3 4 5 6