aiken/examples/hello_world
Jingles 1f1ca4f807 update code and include package.json 2024-12-25 22:53:54 -05:00
..
validators Refresh gift_card and hello_world examples. 2024-09-01 18:22:43 +02:00
.gitignore update hello world codes 2024-11-27 13:12:50 +08:00
README.md update hello world codes 2024-11-27 13:12:50 +08:00
aiken.lock Refresh gift_card and hello_world examples. 2024-09-01 18:22:43 +02:00
aiken.toml Adjust hello world example to new Plutus V3 syntax. 2024-08-25 16:29:24 +02:00
common.ts update hello world codes 2024-11-27 13:12:50 +08:00
generate-credentials.ts update code and include package.json 2024-12-25 22:53:54 -05:00
lock.ts update hello world codes 2024-11-27 13:12:50 +08:00
package.json update code and include package.json 2024-12-25 22:53:54 -05:00
plutus.json Update benchmarks. 2024-08-30 15:45:00 +02:00
unlock.ts update hello world codes 2024-11-27 13:12:50 +08:00

README.md

Hello, World!

An example of an Hello, World! contract using Aiken and Mesh.

See the full tutorial on aiken-lang.org.

Setup

Building

aiken build

Initializing workspace

npm init -y
npm install @meshsdk/core tsx

Setup environment variables

export BLOCKFROST_PROJECT_ID=preprod...

Usage

Generating Credentials

npx tsx generate-credentials.ts

Locking Funds

Warning Require BLOCKFROST_API_KEY environment variable to be set.

npx tsx lock.ts

Successful transaction hash: bfa4818940831dff961a2f097e1aef9bf626de744fd96abfd2be7d6b61afb270 (preprod)

Unlocking Funds

Warning Require BLOCKFROST_API_KEY environment variable to be set.

npx tsx unlock.ts TRANSACTION_ID_FROM_LOCK

Successful transaction hash: 1f8f3abac70c3a71c6aa943b4b9a6ac002e63a69225eb59305c3cd663cda3dd7 (preprod)