6 votes

Can ADA locked on a script be staked?

An Ada address is made up of 2 separate credentials, one for payment and one for staking. These are both treated independently and one, the other or both can be script hashes instead of plain key ...
user avatar
6 votes
Accepted

Does a script always have the same address forever?

Does a script always have the same address forever? Yes. But the script doesn't live at the address, transactions spending UTxOs at the address must be validated by the script to be spent. When ...
user avatar
6 votes

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

UTxOs are always associated with some address or "public key". Traditionally, on Bitcoin and Cardano that meant a wallet address. And someone could only spend a UTxO in a transaction signed ...
user avatar
6 votes

How do nodes access the validator code?

A validator script is compiled into Plutus Core by the Plutus Tx compiler. (It's actually a bit more complicated: see https://iohk.io/en/blog/posts/2021/02/02/plutus-tx-compiling-haskell-into-plutus-...
user avatar
5 votes
Accepted

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

Is there any limit to the number of UTXO's sitting at a script address? There shouldn't be any practical limit. UTxOs aren't stored in some memory at an address. The address determines who can spend ...
user avatar
4 votes
Accepted

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

By inspecting the current ledger CDDL specifications, you can see that each block contains a transaction_witness_sets field, where each transaction_witness_set is defined as: transaction_witness_set = ...
user avatar
  • 746
3 votes
Accepted

Can ADA locked on a script be staked?

When you create an output with a script address, you can put whatever staking key you like on it. That staking key behaves exactly like staking keys do in all other outputs. Scripts can see staking ...
user avatar
3 votes
Accepted

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

This answer will surely age fast. At the time of writing both Nami V3.2.0 and Yoroi Nightly 4.11.501 allow you send to script address, but neither advertise any options of setting datums. Nami allows ...
user avatar
  • 353
3 votes
Accepted

Plutus script execution at every end of epoch

As mentioned by Jey earlier, blockchains and smart contracts remain latent until triggered by a user submitted transaction. One way you could pull this off is that you could use the cardano-cli ...
user avatar
3 votes

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

This sounds like a two part question: Is there any limit to the number of UTXOs stored at a script address Is there any limit to consuming UTXOs stored at a script address For the first one, yes and ...
user avatar
  • 361
2 votes

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

An update on one part of the question that hasn't been addressable till now If the script was stored separately on the address, then a spending transaction would only need to point to that script ...
user avatar
2 votes
Accepted

How to build a script transaction if the validator expects it to be signed

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 ...
user avatar
  • 390
2 votes

Can ADA locked on a script be staked?

Yes. There are a few projects doing this, one of them is StakingDAO, which is in Catalyst Fund 7. I cannot give you details about how this is done, but I heard a few other people saying this is ...
user avatar
2 votes

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

On if it's possible to decode the Plutus code of a given contract, there's a possible duplicate of this question here: Can blockchain viewers read the source code of a smart contract if they know its ...
user avatar
2 votes

Discovering the script source based on address

You can't get the Smart contract code starting from its address. As @zhekson already mentioned, smart contract addresses are hashes of the code (the serialization of the untyped Plutus core to be ...
user avatar
  • 587
1 vote

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

If the first output is in the mempool, you can use it in a subsequent transaction without the node throwing an error. However, there is no assurance that both transactions will be part of the same ...
user avatar
1 vote

How To Get Address Transaction history into Smart Contract?

Turns out plutus does not support this yet (if your reading this in the future it might be out of date -> please check the timestamp).
user avatar
1 vote
Accepted

How to Get the Script Address of A Smart Contract?

There's multiple ways to do it. For example using cardano-addresses or Pycardano library Pycardano: script_cbor_hex = '...' script = cbor2.loads(bytes.fromhex(script_cbor_hex)) script_hash = ...
user avatar
  • 103
1 vote

Plutus script execution at every end of epoch

Scripts are executed as part of a transaction validation. That means: no transaction -> no script execution. The blockchain has no mechanism of timed or automatic script execution. What you can do ...
user avatar
  • 1,356
1 vote
Accepted

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

sorry can you please be more specific? what exactly do you mean "ist all Utxos that were consumed by my script " ? do you need a list of UTXOs for a specific address? and additionally, do ...
user avatar
  • 313
1 vote
Accepted

Script Witness Not Validating for Multisig

Finally I was able to sort this out. You can use this library to create the multisig: https://github.com/tango-crypto/cardano-wallet-js The code I ran was the following: multisig.js const { ...
user avatar
1 vote

How to generate script address from plutus script cborhex

I've answered this here, but as a reference I'll copy my answer below: Plutus-Core script bytes are wrapped twice in a CBOR bytearray. Use the following steps to calculate the script address: unwrap ...
user avatar
1 vote

Discovering the script source based on address

Firstly, the address you referenced in your question is a Byron address, as pointed out by Samuel. Byron addresses are payment only, and are not associated with scripts (smart contracts) or staking. ...
user avatar
  • 3,224
1 vote

Discovering the script source based on address

That's a Byron address, not a plutus script address. Likely being sent to an exchange.
user avatar
1 vote

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

Yes, it can, if you look in the CIP19, it has the header of 0001..... This address contains both the script has, as well as the stake key hash.
user avatar
1 vote

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

Because the purpose of a script is to determine the conditions a UTxO can be spent. If you want to deter people from creating arbitrary UTxOs at your script address, you can write the script in a way ...
user avatar
1 vote

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

Official documentation is silent about it. Since many UTxOs can exist within one wallet address, the same way they can exist within a script address. You can potentially have even 10,000 Tx inputs per ...
user avatar
  • 1,649
1 vote
Accepted

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

Having the script not attached to the UTxO outputs but to the spending transaction reduces the memory consumption of the nodes because UTxOs are stored in memory. Transactions can be pushed to the ...
user avatar
  • 1,356
1 vote

Convert Plutus Address Credential to real-net address

Check here please: https://cardano.stackexchange.com/a/8808/6196 I answered a similar question in a different post
user avatar
  • 130
1 vote

How do nodes access the validator code?

Someone managed to write some code which retrieves the scripts from the chain https://forum.cardano.org/t/proving-a-particular-policy-script-constraint-i-e-before/57443/11
user avatar
  • 669

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