4

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 short, the TX may be submitted to the mempool but be invalid by the time it is to be included in a block. Try setting the TTL to something like 10000+ and see if ...


3

For the above example, you would run: cardano-cli transaction txid --tx-file matx.signed If instead of inspecting a signed transaction you wish to inspect a transaction body / unsigned draft, it would look similar: cardano-cli transaction txid --tx-body-file tx.draft The Txid will be printed to stdout


3

This only works if it's an address embedding the payment and stake credential. You can use cardano-address address inspect locally. You could also use a tool like cardanoscan.io which when given an address to scan tells you the stake address associated as well. Note that some addresses don't have stake addresses and other ones can have only pointers to stake ...


3

Cardano utilizes a UTXO-style accounting model (similar to bitcoin, but with extra features), as opposed to an accounting model, like what Ehtereum uses. Here is a quick overview of the differences. In short, a UTXO is an output of a previous transaction that "sits and waits" at an address to be used as an input for a future transaction. It is ...


2

The flag --tx-out-datum-embed-file FILE allows you to embed the datum data on the transaction, not the datum hash like using that flag --tx-out-datum-hash-file FILE. cardano-cli transaction build --tx-out-datum-embed-file DATUM.json According to this web page, the definition is vague: The script datum to embed in the tx for this output, in the given JSON ...


2

I am afraid that via the cardano-cli, you will not be able to do that. Indeed the cli evaluates the execution units before you get to sign the transaction. Signatories are however available in the script context from a Plutus standpoint. Right now, I don't know any other way than doing it "the Haskell way" and by pre-constructing the transaction ...


2

The fact that you have a transaction ID does not mean it was successfully submitted. The moment you create locally a transaction file, you already have a transaction ID for it, no matter if you submit it or not (even before you sign it). You can see the transaction ID with the command: cardano-cli transaction txid --tx-body-file tx.raw Are you using the --...


2

You need to specify the Ada and asset in the output so it balances. Something like --tx-out "address+5000000 + 5 policyid.assethexname" with your remaining balance needed to balance the transaction.


2

The following command gives the hash of a payment address cardano-cli address key-hash --payment-verification-key-file payment.vkey Remember to change the file name from payment.vkey


2

The only difference between building a regular ADA-only transaction and one that contains ADA + asset(s) is in the cardano-cli transaction build-raw step that follows the multi-asset syntax as discussed in the official cardano documentation It would look something along the lines of: cardano-cli transaction build-raw \ --tx-in <TX_ID> \ --fee <FEE&...


1

here is an example of a transaction i send from 2 TxHash, sending ADA + Token remember, the summary of 2 tx-out must be equal to 2 tx-in. cardano-cli transaction build-raw --fee {fee} --tx-in b98eb283dflkh4582402u40480253c23c0fc35e1a2bcf445e18#0 --tx-in eebb2a5sldfjkdlkfjo485u30ruwldkfjs45346352126b220de8f6f#1 --tx-out ...


1

The tx-out of the build-raw command is the only thing that is different for sending assets. Instead of address+1000000 it will be address+"1000000 + 5 <policy id><<asset name>"


1

Yoroi follows the same nomenclature that cardano-wallet does with change addresses. A number of other wallets (adalite, typhon and my python wrapper wallet https://github.com/input-output-hk/adawallet re-use the same address as the change address). The way it works is explained here in detail: https://github.com/cardano-foundation/CIPs/tree/master/CIP-1852 ...


1

I'm afraid that presenting a "none" datum is not possible. This also means that this UtxO is lost (anybody, correct me if I'm wrong) I don't know the very reason why it is possible to send a UtxO at a script address without datum hash, while at the same time it will not be possible to get it back. Anyway, pay attention to always send a datum hash ...


1

I'm trying to learn this too. I could not find any further documentation other than the cardano-cli command help. This is pretty extensive and useful. Every command argument seems to have built-in help. So, for instance, to get help with building a transaction, issue the command cardano-cli transaction build. The help for this includes some info on the --tx-...


1

A single transaction in Cardano can contain many inputs and outputs. As long as the transaction is signed by all the private keys associated with each address, it will be valid. In other words, the number of inputs doesn't effect the number of signatures needed, only the number of unique addresses does, where each unique address requires a signature. For ...


1

You should be able to create a transaction draft where you should specify a fee of 200000 lovelace (to have the same transaction size as the final transaction), then estimate the fees, and create the final transaction. You can also use "cardano-cli transaction build" command and you don't need to calculate the transaction fees or build the ...


1

but i realized you speak for NFT. then i would do it by blockfrost: curl -H 'project_id: mainnetb2ZFKeNsfggfDFGHJsdgw4nEhuWhExyfV' https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset} [![enter image description here][1]]


1

in script i would do the follow : cardano-cli query utxo --address $address --mainnet > fullUtxo.out tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out while read -r utxo; do tokenAmount=$(awk '{ print $6}' <<< "${utxo}") if you can take this info from step 3. you can use it how you prefer. for example if tokenAmount = ...


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