Install Wasm bytecode
To use the Stellar CLI to install a compiled smart contract on the ledger, use the stellar contract install
command:
stellar contract install \
--source S... \
--network testnet \
--wasm ../relative/path/to/soroban_contract.wasm
Note this command will return the hash ID of the Wasm bytecode, rather than an address for a contract instance.
Guides in this category:
📄️ Deploy a contract from installed Wasm bytecode
Deploy an instance of a compiled contract that is already installed on the network.
📄️ Deploy the Stellar Asset Contract for a Stellar asset
Deploy an SAC for a Stellar asset so that it can interact with smart contracts.
📄️ Extend a deployed contract instance's TTL
Use the CLI to extend the time to live (TTL) of a contract instance.
📄️ Extend a deployed contract's storage entry TTL
Use the CLI to extend the time to live (TTL) of a contract's persistent storage entry.
📄️ Extend a deployed contract's Wasm code TTL
Use Stellar CLI to extend contract's Wasm bytecode TTL, with or without local binary.
📄️ Install and deploy a smart contract
Combine the install and deploy commands in the Stellar CLI to accomplish both tasks.
📄️ Install Wasm bytecode
Use the Stellar CLI to install a compiled smart contract on the ledger.
📄️ Restore an archived contract using the Stellar CLI
Restore an archived contract instance using the Stellar CLI.
📄️ Restore archived contract data using the Stellar CLI
Restore archived contract storage entries using Stellar CLI.