Questions tagged [script-addresses]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 views

What happens if I omit a datum hash in a transaction to a script address?

When using a Trezor to sign a transaction with a script address as the receiver, I get the message "The following transaction output contains a script address, but does not contain a datum. ...
0 votes
1 answer
30 views

Is it possible to consume a script UTxO in the same block?

Let's say I lock some ADA at a script address. Someone who knows the redeemer value can unlock this ADA. Is it possible to include a redeeming tx in the same block as the tx which locks the ADA at the ...
  • 133
1 vote
1 answer
25 views

How To Get Address Transaction history into Smart Contract?

If I want the smart contract to alter functionality depending of the history of the signing address, how do I access the history from within the smart contract?
0 votes
1 answer
31 views

How Can You Prevent A Burn Address From Polluting The Cardano Ledger?

Making a Burn Address on the blockchain is currently done by using a script address with a validator that always returns False and so never validates. This ties up ADA and causes the size of the ...
3 votes
2 answers
55 views

How to Get the Script Address of A Smart Contract?

Once I have written up the smart contract how to I get the script address value to be able to interact with the script whilst its on chain?
0 votes
1 answer
46 views

Is it possible to send funds to a scriptAddress using a lightweight wallet?

I would like that an user using Yoroi/Nami/etc could send funds to a script address which expected an empty datum: (). EDIT (Pretty obvious, but the UTxO should be spendable later by a transaction) I ...
  • 1,264
0 votes
1 answer
42 views

Listing all UTXOs spend by a script as well as the public key it came from

How do I list all Utxos that is in my script as well as the public key addresses that it came from.I am using the result as a parameter for a different function.I want to know if a public key address ...
1 vote
1 answer
79 views

Script Witness Not Validating for Multisig

I'm getting the following error when trying to consume a UTxO sitting in a multisig script address: [ { "scriptWitnessNotValidating": [ "...
0 votes
2 answers
251 views

How to generate script address from plutus script cborhex

I want to generate the address from the plutus script's cborhex value, but so far without much luck. I am using the alwayssucceeds.plutus contract as an example for which the cborhex value is ...
  • 160
1 vote
2 answers
59 views

Plutus script execution at every end of epoch

I would like to develop a Plutus script that executes each time an epoch ends. What's the best way to achieve this behaviour?
4 votes
3 answers
68 views

Discovering the script source based on address

How to find out what scripts / smart contracts are holding my assets and how could I recover these assets if the script allows? I have in my transactions log a transfer of 500 ADA to this script ...
5 votes
3 answers
669 views

Can ADA locked on a script be staked?

I am curious to know what happens to ADA when it gets locked to a script as far as staking goes. In other words, can ADA locked at a script address by staked?
  • 284
0 votes
1 answer
160 views

Is it possible to decode smart contract code from a script hash? [duplicate]

Given a script address, is it possible to decode the Haskell/Plutus code of said script? How can you verify a script does what someone says it will do?
  • 155
4 votes
1 answer
105 views

Does a script always have the same address forever?

When creating a script, the script is given a script address. If I would like to run multiple scripts in parallel, how to go about that? Do I have to define a nonce variable just to make the address ...
  • 284
0 votes
1 answer
88 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 ...
3 votes
1 answer
82 views

Do script addresses have a staking part? Is it possible to stake from smart contracts on Cardano?

I heard somewhere that staking from smart contracts may be possible on Cardano, and I wonder if that is because there is a staking part to script addresses on Cardano? CIP 19 discusses wallet ...
  • 31
1 vote
2 answers
60 views

Why is there no mechanism available to restrict creation of UTXOs at a script address?

It has been told that anyone can create UTXOs at any script address without restrictions since the validator does not run for transaction that do not consume UTXOs. The question is, why so? I think it ...
  • 784
8 votes
4 answers
450 views

Is there any limit to the number of UTXO's sitting at a script address?

Just want to foresee if we'll run into any issues sending/consuming thousands, or tens of thousands of UTXO's at a script address.
5 votes
3 answers
241 views

Why does the Plutus script need be provided in the transaction?

Why does the Plutus script need be provided in the transaction? My understanding is that a script address is just a hash of the script. In order to spend a UTxO from a script address the spending ...
  • 203
7 votes
1 answer
184 views

Convert Plutus Address Credential to real-net address

So in Plutus we have the Address type which has two constructors ScriptCredential which is a ValidatorHash or PubKeyCredential which is a PubKeyHash but all these are not encoded in the same way as ...
12 votes
2 answers
473 views

What does it mean that a UTxO sits at script address?

What does it mean that a "UTxO sits at a script address". What is a script address?
  • 181
9 votes
2 answers
162 views

How do nodes access the validator code?

As far as I know, script address is the hash of the validator script. (Or has the hash of the validator script. I don't know which). So when a node wants to validate that address, It needs to run the ...
6 votes
1 answer
138 views

How can a node verify a transaction with a script address without the script?

How can a node verify a transaction with a script address without the script? I mean when i start a node months after the transaction has been minted into a block. How can my node verify that the ...
  • 669