Questions tagged [transaction]

Transferring assets from one address to another.

Filter by
Sorted by
Tagged with
1
vote
1answer
36 views

Transactions without input addresses

I'm building a minting engine for a project and I found something strange today. One of the incoming transactions, which I pull from a Cardano Wallet (testnet) service has an input without an address. ...
0
votes
1answer
20 views

How to handle tx dropped due to congested network?

Recently Cardano has come under heavy load. The consequences have been that some of our transactions which appear to have submitted successfully to the blockchain do not actually end up on the ...
0
votes
1answer
15 views

How to import root private key or account private key to cardano-wallet

I am playing around with cardano-wallet key derivation, and I have a mnemonic from which I've derived the root key, as well as account 0 public/private keys. Then, I imported a wallet using cardano-...
1
vote
1answer
85 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
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
65 views

Where does the `mustPayToTheScript` function gets the script address from?

On the plutus pioneer program, lesson 02, Lars shows the parameterized contracts and on the off-chain code he makes use of the mustPayToTheScript function to create the transaction. Different from ...
1
vote
2answers
49 views

Timing of finality of a transaction in Mainnet

Hello i am facing some troubles when moving from test-net to main-net, my transactions seems to have to wait a long time for being reflected in the explorer, also i can not do any more transactions ...
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
61 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 ...
3
votes
0answers
98 views

How can I get a fully built transaction from the PAB

According to the Plutus team, the standard way of generating signed transactions containing smart contracts is to have the off-chain code generate a so called unbalanced transaction that is then, in a ...
1
vote
2answers
91 views

send multiple assets in one transaction

I have 2 wallets. I have about 10 assets (tokens, cnfts) besides ADA in each wallet. I would like to send the assets from one wallet to the other to consolidate them. Can I do this in one transaction? ...
1
vote
1answer
51 views

Can you manually list an address in a Smart Contract

Can you manually list a wallet address in a smart contract transaction? For example lets say I create a smart contract that allows any user to send Ada to a specific address by sending it to the ...
2
votes
1answer
49 views

What does the txOutValue refer to?

What is the txOutValue in reference to in a validator script? Is it the output value sent to the script by a wallet or is it the value sent by the script after compilation? Also what does the ...
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 ...
0
votes
0answers
23 views

Balancing transactions with script inputs

Nami does not implement a function to balance an unbalanced transaction. Therefore, the Nami demo of the Plutus Github repository implements this step (as a temporary workaround) in the function ...
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
1answer
40 views

How to derive cost from transaction?

Given a transaction where an NFT reached its final destination after a sale, how can I derive the cost of the NFT? For example, if I search for an asset on cardanoscan.io, the assets involved confuse ...
0
votes
1answer
29 views

DeserialisationError when exporting UnbalancedTx

When converting my UnbalancedTx to an ExportTx using the export function, I get this error: Left (Tag \"toCardanoPolicyId\" (Tag \"1 bytes\" DeserialisationError)) What is very ...
1
vote
0answers
17 views

Why does the full transaction have to be included inside the block?

Transactions are made outside of blocks, and transmitted unconfirmed between all nodes in a network; Nodes advertise new transactions assuming they pass verification to other nodes, who ask for the ...
1
vote
3answers
198 views

Building a transaction using Nami api wallet and cardano-client-lib

I am trying to build a transaction with the libary of cardano-client-lib (java sdk). Inorder to build a transaction one needs to provide an account object which can only be created with the mnemonic ...
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
0answers
63 views

How to export a transaction from Plutus for the wallet

I have a contract that returns an unbalanced transaction: buyTokensTx :: forall w s. TokenPool -> BuyParams -> Contract w s Text (Either MkTxError UnbalancedTx) From what I understand, I need ...
0
votes
1answer
120 views

How do I create and submit a transaction using only Nami Wallet?

I'd like to create a transaction using pure JavaScript on browser using Nami Wallet. The docs shows only cardano.signTx(tx, partialSign) and cardano.submitTx(tx), but don't explain very well how to ...
0
votes
1answer
61 views

Validate Transaction with serialization lib from a Tx Hash

I want to validate Transactions to make sure they are actual Cardano txs with correct length, format etc. I see that Transaction object in emurgo serialization library has an 'is_valid()' method that ...
1
vote
0answers
49 views

Serialize a transaction in python

I want to use the "Submit a transaction" method in Blockfrost but it needs an already serialized transaction. Does anybody know how to serialize a transaction in python? (I don't wanna use ...
0
votes
2answers
77 views

How to get UTxO transaction id using cardano-serialization-lib

I'm missing transaction prefix in order to get bech32 hash of transaction id using cardano-serialization-lib. What prefix is used in transaction bech32 hash and how can I find/compute one? const ...
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 ...
0
votes
1answer
24 views

Delegation Deposit

When delegating for the first time there is a 2 ADA deposit being spent. Is this 2 ADA ever returned? if yes when is it returned and how?
1
vote
0answers
42 views

Maximum transaction size

As far as I know the maximum transaction size is 16kB including metadata https://github.com/cardano-foundation/CIPs/blob/master/CIP-0009/CIP-0009.md However, I recently submitted successfully several ...
3
votes
2answers
49 views

Mnemonic seed from signing and verification key?

I followed an iohk tutorial for minting native assets. The result is that I have a eutxo with the assets, but not enough ada in the eutxo to send them out. I added more ada to the wallet, but the ...
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 ...
1
vote
1answer
22 views

Our valid transaction never posts to the chain. TraceMempoolRemoveTxs in log

We are programatically submitting transactions to the blockchain using cardano-wallet. Everything seems to be fine when we do so. cardano-wallet returns a 202 indicating success along with a ...
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 ...
3
votes
4answers
119 views

How to identify who sent a transaction

We are trying to figure out how to identify the sender (source address) of a given transaction retrieved using cardano-wallet. Here is an example datastructure from the api. Be aware the field values ...
1
vote
2answers
45 views

How long does it take for a transaction to reach a given depth? (How long to reach depth N?)

I realize that the time it takes to reach specific depths is not precisely calculable. Nonetheless, there must be a rule of thumb for roughly how long each block takes to process. For example, if we ...
2
votes
1answer
87 views

How to retrieve the datum added with the option –tx-out-datum-embed-file from the tx witness data

I have been thinking recently about the way we are predominately creating NFTs on Cardano, right now the trend is to add the NFT attributes to the transaction metadata, however, I think this is not ...
1
vote
1answer
71 views

Most efficient way to monitor a wallet for transactions

I'd like to monitor the blockchain and react to when ada is deposited to my wallet. I'm curious about the most efficient way of going about this. For example, if I use the cardano-wallet api it has ...
1
vote
0answers
44 views

Is it possible to validate on-chain if two different wallet addresses come from the same person?

My goal is: I would like to create a smart contract which would verify if unlocking transaction comes from the same person as the wallet address which is known before hand. What I have tried: I have ...
1
vote
1answer
38 views

How to interpret asset transactions data for a NFT?

Using the blockfrost API I quired the transaction history of a NFT using the following script: from blockfrost import BlockFrostApi, ApiError, ApiUrls api = BlockFrostApi( project_id='...
1
vote
1answer
39 views

Free failed transactions or DoS protection? Which is it?

I've been hearing that in Cardano transaction fees are highly predictable (in contrast to Eth gas fees) and that failed transactions don't pay fees. This is in direct contradiction to the transaction ...
0
votes
1answer
80 views

Hash script data

I want to understand a bit better the hash-script-data functionality from cardano-cli. I checked the source code but had no luck in understanding how this hash is made. From the examples, if we run: ...
2
votes
1answer
50 views

Store data in Tx Metadata on Cardano

I would like to notarize some data (like document signatures for example) of less than 500KB on the blockchain and for that I thought to use the Metadata field of a transaction. So I have 2 questions: ...
5
votes
2answers
449 views

When is an eUTXO consumed?

Scenario There are two transactions tx1 and tx2 both trying to consume an arbitrary eUTXo oRef. Both tx1 and tx2 are submitted to the mempool in the same block, and are valid transactions; we can ...
2
votes
1answer
105 views

Convert Redeemer, Datum or Script Parameter to JSON

By following the alonzo-testnet exercises, I'm right now having to build a transaction with cardano-cli. One of the arguments necessary to consume a script is the datum, another is the redeemer, both ...
2
votes
4answers
487 views

How to convert a cardano address into a public key hash?

After spending some time learning Plutus with emulators, I decided to start learning how to actually deploy and use the scripts in the testnet. In this process, I installed cardano-cli and created ...
2
votes
1answer
132 views

How to list all wallet UTxOs with cardano-cli?

How to list all wallet's UTxOs with cardano-cli utility? Not only address UTxOs via: cardano-cli query utxo --address <ADDRESS> --mainnet
2
votes
0answers
20 views

Design considerations when automatically signing and submitting Cardano transactions

Automating transactions (eg an Oracle that regularly publishes meta data to the blockchain) require that we balance the necessity to sign each transaction using a signing key with the security of the ...