Cheat Sheet

scrypto Cheat Sheet

Action

Command

To create a new package

scrypto new-package <package_name>

To build a package

scrypto build

To test a package

scrypto test

To run a test with standard output

scrypto test - <test_name> — --nocapture

resim Cheat Sheet

Action

Command

To create an account

resim new-account

To change the default account

resim set-default-account <account_address> <account_public_key>

To create a token with fixed supply

resim new-token-fixed <amount>

To create a token with mutable supply

resim new-token-mutable <minter_badge_address>

To create a badge with fixed supply

resim new-badge-fixed <amount>

To create a badge with mutable supply

resim new-badge-mutable <minter_badge_address>

To mint resource

resim mint <amount> <resource_def> <minter_badge_address>

To transfer resource

resim transfer <amount>,<resource_def> <recipient_address>

To publish a package

resim publish <path_to_package_dir>

To call a function

resim call-function <package_address> <blueprint_name> <function> <args>

To call a method

resim call-method <component_address> <method> <args>

To export the ABI of a blueprint

resim export-abi <package_address> <blueprint_name>

To show info about an address

resim show <address>

Other Useful Commands

Action

Command

To overwrite a deployed package

resim publish <path_to_package_dir> --address <existing_address>

To list all entities in simulator

resim show-ledger