Build and Earn! Check out the bounties!

Usage

Running the most important Hello World on Lilypad!

Before you run a Lilypad job, make sure you have Lilypad CLI installed and have set a WEB3_PRIVATE_KEY env variable in your environment.

Your WEB3_PRIVATE_KEY can be retrieved from the MetaMask account details menu. For more info, check out the official guide from MetaMask on how to get a your private key. Be sure to keep your private key safe and never share it or store it in unsecured places to prevent unauthorized access to your funds.

Run Cowsay

cowsay is a classic CLI tool that prints messages in a speech bubble from an ASCII cow. You can run it as a job on the Lilypad network.

By default, Lilypad CLI saves results to a temporary directory. To specify a custom directory for your job results, set the DATA_DIR environment variable before running your command: export DATA_DIR=~/<DIRECTORY>

Run the command:

lilypad run cowsay:v0.0.4 -i Message="moo"

Wait for the compute to take place and for the results to be published:

โ €โ €โ €โ €โ €โ €โฃ€โฃคโฃคโข โฃคโฃ€โ €โ €โ €โ €โ €
โ €โ €โ €โ €โขดโฃฟโฃฟโฃฟโฃฟโขธโฃฟโกŸโ €โ €โ €โ €โ €    โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ €โ €โฃฐโฃฟโฃฆโก™โขฟโฃฟโฃฟโขธโกฟโ €โ €โ €โ €โข€โ €    โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
โ €โขฐโฃฟโฃฟโฃฟโฃฟโฃฆโก™โฃฟโขธโ โข€โฃ โฃดโฃพโฃฟโก†    โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
โ €โฃ›โฃ›โฃ›โฃ›โฃ›โฃ›โฃ›โ ˆโ €โฃšโฃ›โฃ›โฃ›โฃ›โฃ›โฃ›    โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘    โ•šโ–ˆโ–ˆโ•”โ•  โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
โ €โขนโฃฟโฃฟโฃฟโฃฟโ Ÿโฃกโฃฟโขธโฃฎโกปโฃฟโฃฟโฃฟโฃฟโก    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•
โ €โ €โขปโฃฟโกŸโฃฉโฃพโฃฟโฃฟโขธโฃฟโฃฟโฃŒโ ปโฃฟโกŸโ €    โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•   โ•šโ•โ•     โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ• v2.13.0
โ €โ €โ €โ ‰โขพโฃฟโฃฟโฃฟโฃฟโขธโฃฟโฃฟโฃฟโกทโ ˆโ €โ €
โ €โ €โ €โ €โ €โ ˆโ ™โ ›โ ›โ ˜โ ›โ ‹โ โ € โ €โ €โ €   Decentralized Compute Network  https://lilypad.tech

๐ŸŒŸ  Lilypad submitting job
2025-03-05T12:56:38-06:00 WRN ../runner/work/lilypad/lilypad/cmd/lilypad/utils.go:63 > failed to get GPU info: gpuFillInfo not implemented on darwin
2025-03-05T12:56:38-06:00 INF ../runner/work/lilypad/lilypad/pkg/web3/sdk.go:209 > Connected to arbitrum-sepolia-rpc.publicnode.com
2025-03-05T12:56:38-06:00 INF ../runner/work/lilypad/lilypad/pkg/jobcreator/run.go:27 > Public Address: 0xB86bCAe21AC95BCe7a49C057dC8d911033f8CB7c
Enumerating objects: 42, done.
Counting objects: 100% (22/22), done.
Compressing objects: 100% (4/4), done.
Total 42 (delta 18), reused 19 (delta 18), pack-reused 20 (from 1)
๐Ÿ’Œ  Deal agreed. Running job...
๐Ÿค”  Results submitted. Awaiting verification...
๐Ÿค”  Results submitted. Awaiting verification...
โœ…  Results accepted. Downloading result...
๐Ÿ†”  Data ID: QmP2SQttNC3Hrh2xpY7bNHzV2jHq7MbfLahRC46DVzn5rG

๐Ÿ‚ Lilypad job completed, try ๐Ÿ‘‡
    open /tmp/lilypad/data/downloaded-files/QmQHrsiAuzTLn5VU6jg5LoXBRrAkEVRKiYeJE29w54gg9Q
    cat /tmp/lilypad/data/downloaded-files/QmQHrsiAuzTLn5VU6jg5LoXBRrAkEVRKiYeJE29w54gg9Q/stdout
    cat /tmp/lilypad/data/downloaded-files/QmQHrsiAuzTLn5VU6jg5LoXBRrAkEVRKiYeJE29w54gg9Q/stderr

View your results:

cat /tmp/lilypad/data/downloaded-files/QmQHrsiAuzTLn5VU6jg5LoXBRrAkEVRKiYeJE29w54gg9Q/stdout
~ % cat /tmp/lilypad/data/downloaded-files/QmQHrsiAuzTLn5VU6jg5LoXBRrAkEVRKiYeJE29w54gg9Q/stdout
 ________________ 
< hello, lilypad >
 ---------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Last updated

Was this helpful?