Skip to main content
To manage the lifecycle of a Stellar smart contract using the CLI, follow these steps:
  1. Set your preferred network. For this guide, we will use testnet. A list of available networks can be found here
  1. Create an identity for Alice:
  1. Fund the identity:
  1. Deploy a contract:
This will display the resulting contract ID, e.g.:
To learn more about how to build contract .wasm files, take a look at our getting started tutorial.
  1. Invoke a contract function:
  1. View the contract’s state:
Note: <DURABILITY> is either persistent or temporary. KEY provides the key of the storage entry being read.
  1. Manage expired states:
This extends the state of the instance provided by the given key to at least 1000 ledgers from the current ledger.