7 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 ...
Samuel Leathers's 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 ...
Mitchell Turner's user avatar
6 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 ...
Mitchell Turner's 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 ...
Mitchell Turner's 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-...
Johannes Sirsch's 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 = ...
vaz's user avatar
  • 756
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 ...
waalge's user avatar
  • 403
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 ...
Bharat Mallapur's user avatar
3 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 ...
Bharat Mallapur's 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 ...
Matt Ho's user avatar
  • 361
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 ...
Will's user avatar
  • 1,162
2 votes

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
D S's user avatar
  • 312
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 ...
George - APEX Stake Pool's 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 ...
joaquimgamero's 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 ...
KtorZ's user avatar
  • 535
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 ...
Michele Nuzzi's user avatar
2 votes
Accepted

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

Currently, Cardano has two types of addresses, verification key witnessed addresses and script witnessed address. The former allows spending of value (in the form of UTxOs) from that address if the ...
Fermat's user avatar
  • 1,862
2 votes
Accepted

Javascript SDK for working with Plutus smart contracts

You have many options for that: programmatically create a Plutus smart contract to mainnet Here the only option is plu-ts; it allows you to write and compile a smart contract directly in typescript (...
Michele Nuzzi's user avatar
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 ...
Prashanth S.'s 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).
KryptoKing's user avatar
1 vote

How to Get the Script Address of A Smart Contract?

for those looking to use ```cardano-cli`` cardano-cli address build --$testnet --payment-script-file path/to/serialized-smartContract.plutus.json
Michele Nuzzi's 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 = ...
et97's user avatar
  • 174
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 ...
TTS17's user avatar
  • 346
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 { ...
Falcon Stakepool's 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 ...
Christian Schmitz's user avatar
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 ...
Jey's user avatar
  • 1,549
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. ...
zhekson's user avatar
  • 3,639
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.
Samuel Leathers's 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.
Marek Mahut - StakeNuts's 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 ...
Mitchell Turner's user avatar

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