Questions tagged [cardano-cli]
The official command line interface to interact with a Cardano node.
314
questions
1
vote
0
answers
5
views
Can I communicate with my local test net via REST/WebAPI
I am using this https://github.com/woofpool/cardano-private-testnet-setup to run my local testnet.
I was using this
const CardanocliJs = require('cardanocli-js');
const cardano = new CardanocliJs(...
0
votes
1
answer
25
views
Cardano-cli minting gives FeeTooSmallUTxO error when no collateral
For minting some tokens I use this transaction:
cardano-cli transaction build
--testnet-magic 2
--tx-in-collateral 44ed21bc50eecc24e892a5bad4a98f2187b66d1f5074db22763cbc69fb5910b6#1
--tx-in ...
0
votes
2
answers
45
views
Unable to deploy Plutus NFT Minting Policy parametrized by TxOutRef using cardano-cli
UPDATE:
I'm making progress. It is apparent the TxOutRef stored on-chain has some extra-structure. For evidence I "printed" the TxOutRef's of the 'utxo' hard-wired in my minting policy and ...
0
votes
0
answers
21
views
Is there a way to get cardano-node version in Prometheus metrics?
Like the title says, does anyone here know of the proper way to go about adding cardano-node version to the cardano_node_metrics being exported by Prometheus to Grafana? I would like to add this ...
0
votes
1
answer
48
views
How to resolve this "(FromAlonzoUtxoFail (UtxosFailure (ValidationTagMismatch (IsValid True)" transaction submission error on mesh library
I am getting this error on transaction submission.
""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (FromAlonzoUtxoFail (...
0
votes
1
answer
20
views
Unexpected error coming from Helios library during connection to preview TestNet verification?
My Eternl wallet now has an account that is targeted towards the preview TestNet. I did activate the account for connecting to Cardano dApps. I am able to connect to my wallet from Picoswap. However, ...
0
votes
1
answer
15
views
Transfering NFT from CLI to your Nami wallet
I created an NFT on preprod via my cardano-cli but I have issues sending it to my Nami wallet. Can anyone point me to the best documentation that covers this. Thank You.
0
votes
1
answer
15
views
What is different nami wallet signing and payment.skey signing?
I built transaction at nodejs by using cardano-cli.
cardano-cli transaction build \
--alonzo-era \
--testnet-magic 1 \
--tx-in dbf7f56f844cc4b85daccb62bedf4eeff0a84cb060f0f79b206c7f087b3f0ba1#0 \
--tx-...
0
votes
0
answers
43
views
cardano preprod wallet balance is still zero after full node sync
I'm following the instructions laid out in this article.
https://developers.cardano.org/docs/get-started/cardano-wallet-js
I first ran cardano node and wallet using docker-compose on preprod network. ...
0
votes
2
answers
57
views
How to generate CBOR hex of plutus smart contract
How can i generate the CBOR hex of a plutus smart contract. Does it requires to generate CBOR of onchain code only or both onchain and offchain?
Also if have a smart contract which requires parameters ...
1
vote
1
answer
103
views
How to deploy the Plutus smart contract
I am following Plutus-pioneer-program to learn smart contract development in Cardano. I have tried the onchain and offchain code, compiled and tested in Plutus playground and also in emulator trace. ...
0
votes
2
answers
76
views
how to use the transaction created using. cardano cli to be signed by a wallet in frontend
If we create a transaction body in the backend using cardano-cli for example, and only for signing the transaction would like to get the frontend wallet to sign it, how is this done in the best ...
0
votes
0
answers
39
views
cardano-cli generated CBOR to serialization lib [BABBAGE]
I am creating a transaction using cardano-cli. After building, I sign it with some random private key, and return signed transaction CBOR to UI.
UI takes the CBOR, removes my random witness which ...
0
votes
3
answers
78
views
how to resolve this transaction submission error of MintToken with Mesh
I am Facing this error while transaction submission.
""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (...
0
votes
1
answer
37
views
ScriptWitnessNotValidatingUTXOW - Transaction Error While Minting NFT With Native Script - Before Slot Instruction Not Working
I am trying to mint an NFT for the zeroOneGame exercise from gimbalabs on the pre-production testnet (babbage-era) but I incur in an error and I can't see what I am doing wrong.
Here are the steps ...
0
votes
1
answer
74
views
cardano-cli transaction with inline datum
I already have utxos with inline datum sitting at a wallet address (not in a smart contract address):
now I want to use this utxo in another transaction, in order to inspect it's datum, without ...
0
votes
1
answer
25
views
Submit transactions to the blockchain in Plutus
Currently my workflow is like this:
write a validator script in Plutus
test the script in by creating functions/endpoints to submit transactions to Plutus.Trace (Emulator)
if the test goes well, I ...
0
votes
1
answer
26
views
Not Able to watch my Cardano faucets when i query the node
I am using following command to query node.
./cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063
Getting the Faucets in preview testnet by the following site
https://...
0
votes
2
answers
135
views
Error - Building Cardano Node 1.35.4 in Ubuntu Linux 22.04
When building cardano-node-1.35.4 using
git checkout tags/1.35.4
cabal update
cabal build all
I get the following error
cabal: Failed to build tx-generator-2.2 (which is required by
test:tx-...
0
votes
1
answer
42
views
What is the best IPFS provider for Cardano NFT that uses CidV0?
I am relatively new to the IPFS and NFT world. I am interested in finding the best IPFS provider for storing NFT files that are later used for minting a Cardano NFT. Currently, I am using Nft.Storage, ...
0
votes
1
answer
34
views
Key derivation are unclear
I watch this video on Key Derivation process (https://www.youtube.com/watch?v=4tSQBK75CPU&t=722s). Basically, from mnemonic phrase --> create root key --> create public addresses
Then, I see ...
0
votes
2
answers
233
views
How does Cardano Halving work?
Does Cardano Halving work similar to Bitcoin Halving? The next Bitcoin halving is projected to take place in March 2024, will Cardano Halving happen the same year?
The Cardano price prediction for ...
1
vote
1
answer
51
views
How to use reward withdrawing via cardano-cli?
Has anyone played around or stumbled upon tutorial examples on how to use reward withdrawing via cardano-cli? I want to study the commands related with "withdraw" keyword. I have not seen ...
0
votes
0
answers
16
views
traceIfFalse not showing in cardano-cli output
I have a minting policy:
mkNftValidator :: NftParams -> BuiltinData -> ScriptContext -> Bool
mkNftValidator _ _ _ = (traceIfFalse "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ...
0
votes
1
answer
25
views
building cardano-node and cardano-cli on nix
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
33
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 ...
0
votes
2
answers
21
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
33
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 ?
0
votes
1
answer
52
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
8
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
18
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
50
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
41
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
30
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:
...
2
votes
1
answer
31
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 ...
1
vote
3
answers
35
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 ...
0
votes
1
answer
18
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
25
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
87
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
66
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
15
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 \...
0
votes
1
answer
35
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
...
9
votes
3
answers
206
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 ...
0
votes
1
answer
56
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
75
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
39
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
72
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 ...
1
vote
2
answers
72
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 ...
4
votes
3
answers
93
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
32
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 ...