Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.73 KB

execute.mdx

File metadata and controls

69 lines (42 loc) · 1.73 KB

import WorldOptions from '../common/world-options.mdx' import StarknetOptions from '../common/starknet-options.mdx' import AccountOptions from '../common/account-options.mdx' import SignerOptionsRaw from '../common/signer-options-raw.mdx' import SignerOptionsKeystore from '../common/signer-options-keystore.mdx' import TransactionOptions from '../common/transaction-options.mdx'

sozo execute

execute is used to execute a World's system.

Performing a system execution requires sending a transaction, therefore, execute expects an account address as well as its respective private key in order to sign the transaction before sending it.

As sozo has access to the manifests generated at compile time, you can provide either the name of the contract or its address to execute a system.

USAGE

# you can use the name or address of the contract
sozo execute <CONTRACT> <ENTRYPOINT>
Arguments

CONTRACT     The fully qualified name of the contract or it's address.

ENTRYPOINT     The name of the system to be executed.

OPTIONS

General Options

--calldata [-c] CALLDATA
    The calldata to be passed to the system that you want to execute.
    Comma separated values e.g., 0x12345,0x69420.

World Options

Starknet Options

Account Options

Signer Options - Raw

Signer Options - Keystore

Transaction Options

EXAMPLES

  1. Executing the position system which takes two values (x: 0x77 and y: 0x44)
sozo execute moving_contract position --calldata 0x77,0x44