Registry Smart Contract
Last updated
Was this helpful?
Last updated
Was this helpful?
Make sure to install Aiken and have it available in your path .
To generate the smart contracts just run:
To run the scripts you also need to install (Node.js)[] and install the dependencies via npm install
.
Afterwards, to generate a testnet wallet, you can run various scripts:
The address will be found in the wallet.addr
and wallet.sk
(private key) file. You can top-up some test ADA (here)[]
The following commands will require the BLOCKFROST_API_KEY
environment variable to be set. Make sure to register an account on and get your key for either the preview or preprod network and use it consistently (cardano has multiple testnets).
To mint an example registry asset. The metadata can be configured in the mint-example.mjs
file.
To defrag the wallet (if there are no split up utxos containing only lovelace)
You can add tests in any module using the test
keyword. For example:
To run all tests, simply do:
If you're writing a library, you might want to generate an HTML documentation for it.
Use: