All Questions
Tagged with plutus smart-contract
145
questions
1
vote
1
answer
152
views
How can I configure and send a transaction to the Cardano chain using python
I have written some plutus contracts, but they use parameterisation and the params are gained through a REST API.
I am using python3 to interface with the API, but would like to be able to script an ...
1
vote
1
answer
130
views
How to log/trace/print messages from within the contract ON-chain code, while using cardano-cli?
I'm wondering how to log/print/trace any message during the execution of a contract when submitted to the blockchain via cardano-cli.
So basically I hoped this very simple test script would show me ...
1
vote
1
answer
83
views
How do Endpoints work?
and cant figure out what Endpoint do (why are they in the code) and most important of all how should I code them. What are the best practices?
1
vote
2
answers
253
views
What is the Cardano's equivalent to the Ethereum's EVM?
What is Cardano's smart contract engine called?
Smart contract language:
Solidity (Ethereum) => Plutus (Cardano) Simple enough, I get this.
Smart contract "engine":
EVM (Ethereum) => ?...
1
vote
2
answers
95
views
How to embed smart contract in website
I am creating a dapp website and which will reward it's users on completing different tasks. I have to create cardano native tokens. My question is that how can I send, lock and burn native tokens ...
1
vote
2
answers
78
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?
3
votes
1
answer
295
views
Referencing an external plutus script
I would like to understand how one can reference an external plutus script in one transaction. In solidity (for the other script), one can import the contract interface into their script, create an ...
4
votes
2
answers
316
views
How to estimate execution steps and memory units for a Plutus script?
Question
Is there a tool/API that can calculate the number of steps and max consumed memory units for a Plutus script, given all necessary inputs, e.g. datum, redeemer, and script context?
I could be ...
0
votes
1
answer
202
views
What is the correct way to compare two instances of Value data type?
Question
What is the correct way to compare two instances of Value data type?
Context
I would like to check if outgoing transaction identified by PubKeyHash has the same Value as Value which was ...
0
votes
1
answer
410
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?
7
votes
2
answers
234
views
on multiple eUTxO and the validation proces
I have an in-depth question that needs good knowledge of the ledger rules.
I was thinking about how to program efficiently and design apps such that they are parallelizable, a good practice for ...
4
votes
2
answers
188
views
What documentation works with handling utxos at the Plutus Script?
I am trying to make a Plutus smart contract which takes tokens locked to the contract and then on endpoint call (purchase) sends 1 to the caller and then the rest back to the contract. I cant find a ...
0
votes
2
answers
65
views
Does the redeemer have to be from a wallet address/contract?
Could a contract be programmed such that the redeemer seemingly comes from nowhere from what the node / someone monitoring the blockchain could tell? I am thinking if you gave the contract some ada ...
0
votes
1
answer
64
views
Errors when starting plutus-playground.server
I have built, run, compiled, simulated, and evaluated on my local nix server/client env. I am running Ubuntu 21.04, Kernal 5.11.0-46lowlatency.
Here is the terminal output:
[Info] Running: (Nothing,...
1
vote
2
answers
39
views
How to make certain script inputs available only to the script iself?
How can I approach a smart contract design that would allow me to encrypt inputs from multiple transactions and allow only the smart contract itself to be able to decrypt this data?
Use case example: ...