<p>You can run smart contracts with the <a href="https://github.com/emurgo/cardano-serialization-lib" rel="nofollow noreferrer">cardano-serilization-lib</a> and its js libraries. Check <a href="https://github.com/Berry-Pool/spacebudz" rel="nofollow noreferrer">https://github.com/Berry-Pool/spacebudz</a> 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.</p>

CC BY-SA 4.0
2021-11-18T14:28:23.577Z
2021-11-18T14:28:23.577Z
Alain Magazin
<blockquote>
<p>How to run smart contract in Cardano Blockchain?</p>
</blockquote>
<p>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. <a href="https://github.com/input-output-hk/Alonzo-testnet/blob/main/Alonzo-tutorials/Plutus_transactions_tutorial.md" rel="nofollow noreferrer">Here</a> is a thorough tutorial on how to do that.</p>
<blockquote>
<p>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?</p>
</blockquote>
<p>I'm not sure if this answers your question, but if you are curious where the smartcontracts live, my answer over <a href="https://cardano.stackexchange.com/a/2351/1130">here</a> might help.</p>

CC BY-SA 4.0
2021-10-11T03:10:50.663Z
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?
Oscar Hasan Putra
CC BY-SA 4.0
2021-12-18T15:19:51.973Z
I don’t understand, even Charles Hoskinson said the PAB is released. The GitHub page list a pre-release of the PAB. I thought it would be possible (even if at own risks) to connect to the mainnet with it.
Jey
CC BY-SA 4.0
2021-10-08T17:02:46.373Z
2021-10-08T17:02:46.373Z
Mitchell Turner
<p>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.</p>
<p>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?</p>
<p>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.</p>

<plutus><smart-contract><cardano-cli><cardano-node><plutus-pab>
How to run smart contracts in the Cardano Blockchain?
# How to run smart contracts in the Cardano Blockchain?

(Asked by: username_0 on 2021-10-06)

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.

**Tags:** plutus, smart-contract, cardano-cli, cardano-node, plutus-pab

---

## 2 answers

### Answer by username_1 on 2021-11-18. Score: 1

You can run smart contracts with the [cardano-serilization-lib](https://github.com/emurgo/cardano-serialization-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.


---

### Answer by username_2 on 2021-10-08. Score: 1

> 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](https://github.com/input-output-hk/Alonzo-testnet/blob/main/Alonzo-tutorials/Plutus_transactions_tutorial.md) 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](https://cardano.stackexchange.com/a/2351/1130) might help.

> **Comments:**
> **username_0**: 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?  
> **username_3**: I don’t understand, even Charles Hoskinson said the PAB is released. The GitHub page list a pre-release of the PAB. I thought it would be possible (even if at own risks) to connect to the mainnet with it.  

---

