Skip to content

Developing Simple Pay-to-Script Applications with ErgoScript#

With ErgoScript, you can create basic applications using the pay-to-script (P2S) address compiler available at wallet.plutomonkey.com/p2s. Check out this video tutorial for more details. When you transmit a transaction to this P2S address, the output is locked with the script you input.

Example Applications#

Here are a few examples of what you can create:

  • Wrapped ERG: This script lets you exchange Wrapped ERG tokens for native ERG on a trustless 1:1 basis. For more information, check out the Wrapped ERG forum thread.

  • Crowdfunding: This script provides a method to raise funds within a specified timeframe. The funds can only be accessed if the fundraising goal is met by the deadline. If the deadline passes without reaching the goal, the funds can be returned to the backers. See the script on Pluto Monkey P2S.

  • 3-out-of-5 Threshold Signature: This script allows the creation of a multi-signature wallet that requires the agreement of at least three out of five participants to authorize transactions. The script can be found on Pluto Monkey P2S.