5

I know that since Alonzo was launched smart contracts can be published in the blockchain now, but I have no idea how to do it.

I have read some articles about the Plutus Application Backend though, it's a platform to work with Plutus scripts and provides an API to run those scripts via an endpoint that it's embedded in the script. But this means that smart contracts that run in Plutus are still off-chain in the local machine instead of being running on-chain. Is this true?

Or am I missing something like other library that works with the Plutus smart contracts and can interact with my web DApps?. Please if there is any suggestion I would appreciate it.

0

How to run smart contract in Cardano Blockchain?

PAB isn't available yet outside of development. The only way to submit and interact with smart contracts on-chain is with the cardano-cli. Here is a thorough tutorial on how to do that.

But it means that smartcontract that run in plutus still off-chain or running in local machine instead of running on blockchain. Is that true?

I'm not sure if this answers your question, but if you are curious where the smartcontracts live, my answer over here might help.

1
  • honestly, i would like to create a program for my thesis for achieving my bachelor. so mostly my dapps would be running in public testnet with PAB. is it possible? Oct 11 at 3:10
0

You can run smart contracts with the cardano-serilization-lib and its js libraries. Check https://github.com/Berry-Pool/spacebudz to see an example. This allows you to host a web dApp where the user can connect with their Nami wallet, sign transactions that can contain datum, redeemer, everything needed to interact with smart contracts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.