Questions tagged [smart-contratcs]
The smart-contratcs tag has no usage guidance.
35
questions
0
votes
0
answers
9
views
How To Convert Old Plutus Scripts to Vasil Reference Scripts?
One of the fun things, the Vasil hardfork gives us is the ability to reduce the size of transactions and so put more of them into a block (speeding up the chain).
My question is how to change the ...
0
votes
1
answer
30
views
How to Securely Serialise a Plutus Smart Contract Endpoint?
Assuming I made an arbitrary smart contract and want to serialise the endpoint after I have the validator hash and address hash, what should I do to ensure that the serialisation is as safe as ...
0
votes
1
answer
16
views
Where Do I Go To Find All The ScriptContexts Feilds and Functions?
Hi im getting lost in the documentation, I have found some things I was looking for but am failing to find the info and functions for script contents. Im using this link https://playground.plutus....
0
votes
1
answer
25
views
Whats the function to get the current time in Plutus?
Im using the time module in the ledger class to do some custom validation logic, but everything is done as intervals and I cant find the function that gets the current time. What is it?
0
votes
2
answers
39
views
How to securely call Blockfrost or other API service from Smart Contract?
I just spent a few days trying to find a way to access account data from a smart contract using only plutus. Turns out IOG has yet to put that functionality in (at least that's how I understand it) ...
0
votes
1
answer
15
views
How to get transaction info of a pkh?
Given a PubKeyHash (pkh) how can I get the history of that pkh transactions from within a plutus contract?
0
votes
1
answer
10
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
10
views
Do I Need A Contract Monad For a Burn Wallet?
If I make a script address to be a burn address, I end up having a validator that never validates i.e. returns false all the time. Does a Smart Contract that never can validate need an instance of the ...
1
vote
0
answers
16
views
Whats a Good Example of Interconnected Smart Contracts?
In the Contract Monad we have the use of w s e a. Now w is used to connect contracts is there a good example of how this is done, in particular how to validate a contract using the w of another ...
0
votes
1
answer
27
views
How Long Can A Contract Stay On Chain After Validation?
So I have a smart contract that will validate and do some action X but I then require it to wait for user action for a time T and then perform action Y.
Questions:
What are the limits on T (how long ...
0
votes
0
answers
10
views
How to Look Up a Token Policy ID from The Smart Contract Validator
I have attached a token to the datum and sent it to the smart contract, now I need the validator to check that the token has a certain policy ID before it allows the contract to proceed.
How do I do ...
2
votes
2
answers
33
views
ADA handle NFT royalty address
Is it possible to use an ADA handle as the address for NFT royalties? I’d like a way of changing the address that royalties get sent to if I decide to sell my project in the future. Maybe it would be ...
3
votes
2
answers
33
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?
1
vote
0
answers
9
views
How to Validate A Smart Contract Twice?
I have a smart contract I want to validate at a certain date. Exacute its logic and then revalidate on a second date. The trick is I only want it to be signed once. How do I do this?
can I just add ...
0
votes
0
answers
10
views
How to Sign a Smart Contract From a Smart Contract?
I want to run a smart contract (that the user signs) and then wait 10 days and send some ADA from the user's wallet to another address. I can do the waiting with POSXIT Time but if there is not ...
1
vote
0
answers
12
views
How to Send A Token to an Smart Contract Alongside a Datum?
I asked another question (How to Make Sure A Contract Is Signed By a Certain Party?) and got the answer I expected.
It raised the secondary Question of how to send a token with a datum to a smart ...
2
votes
1
answer
41
views
How to Make Sure A Contract Is Signed By a Certain Party?
I'm thinking about making a parameterised contract between two users. User A can be anyone i.e. any customer, But User B should always be the company. I want to make it so that the validator only ...
1
vote
0
answers
22
views
Whats the Diffrance between Plutus scripts and Cardano Native Scripts?
What are the key differences between Cardano native scripts and Plutus scripts, from a developer's perspective?
0
votes
0
answers
3
views
Side Chian Interactions on Cardono?
How do I connect a Side chain to the cardano main chain using smart contracts?
According to How do I make a Sidechian The main idea is to mint tokens on the main chain and burn them according to the ...
0
votes
0
answers
9
views
How to Ensure Constant Timing in Contracts Given Slots can be Changed?
The amount of time a slot represents can be changed. This means if I code a smart contract that has some sort of waiting function for N slots, the amount of time it waits for will change with the slot ...
0
votes
1
answer
39
views
How do you Connect ATALA to Plutus Smart Contracts [closed]
I think they use diffrent programming languages, but how can I use DID inside my Plutus contracts?
0
votes
2
answers
52
views
Can Queries To the Chain be made From Plutus Smart Contracts?
Considering that Plutus Smart Contracts have two parts (on chain and off chain) is there a way to make Queries to the Cardano Chain in the onchain part of the contract considering that the SC is ...
0
votes
2
answers
53
views
How can you use Ledger.Constraints in the Validator?
Hi i have noticed that you can get the unspent UTxOs in an wallet address using the Ledger. Constraints module. I want to know can I use it the same in the mkValidator as in the Endpoints?
The general ...
1
vote
0
answers
46
views
How to use Endpoints and Schema
I doing the PPP but Lars does not cover Endpoints or schema declarations in sufficient detail. I imagine that this is a problem that Plutus devs must overcome, but I cannot find suitable documentation ...
0
votes
1
answer
217
views
Will Cardano ever have anything more than validators on-chain?
I have been looking into creating a blackjack game on the Cardano Blockchain. I started with learning Haskell, and writing a simple blackjack CLI game. It was heaps of fun and a bit of a learning ...
1
vote
3
answers
170
views
How to deploy a marlowe smart contract on cardano
I'm a beginner, I have the haskell code and I wnat to know the following steps, I couldn't find specific information how can i deploy a smart contract on the mainet or testnet.
1
vote
2
answers
209
views
Is It possible to stake an nft on chain
Is there a way I can use smart contracts to stake nfts and back them with ada tokens. Similar to staking ada except also holding the nft in like a gallery or something.
8
votes
2
answers
461
views
I am completely new to Cardano eco system. To learn it from the absolute basic, where do I start?
This is a broad question but I am sure many might have this in their mind.
I am an upcoming blockchain engineer and my exposure to Cardano eco system is limited to buying the ADA cryptocurrency and ...
1
vote
1
answer
93
views
I have a smart contract in Ethereum. Is there a way to migrate it over to Cardano?
I have a smart contract for an NFT in Ethereum and I'd like to put it in the Cardano eco system as well. How can I do that? Is there any 'smart contract bridge' through which I can port it over?
5
votes
1
answer
400
views
What tools do I have for building a Cardano Daap right now?
I am building a Dapp in Cardano and I want it to build NFTs even if it's not possible right now, what tools can I use for it?
I know that there is a testnet where I can run Plutus contract. How can I ...
4
votes
1
answer
67
views
How are transactions prioritized from memory?
I've been thinking on restrictions around concurrency of smart contracts given the deterministic nature of the EUTXO model, and I've had trouble finding an answer to how transactions are prioritized ...
1
vote
1
answer
21
views
Mallet IELE Compiler crashes without Uncaught Error
I was able to get mallet running with the command ./mallet iele -d .
I created a simple contract that works in Remix but when I try to compile the contract using iele I get a Uncaught 'Compiler error: ...
16
votes
4
answers
983
views
On-chain and off-chain for Plutus SCs
Hi I am currently at lecture 5 of the Plutus Pioneers Programm and I was wondering which part of the code is on chain and which is offchain. I know that the valididation script is onchain but the ...
5
votes
5
answers
481
views
Where can I find design and documentation resources for Cardano Smart Contracts?
I’d like to better understand the design and features of the upcoming Cardano smart contracts.
Where is the design guidance & documentation posted for them, including their planned functionality, ...
6
votes
1
answer
89
views
I am looking for a practical example of a smart contract with three parties
I would like to know if the following scenario involving three parties could make sense in the context of a smart contract.
I am new to blockchain and smart contracts, I have come across some standard ...