Skip to content

sozo call

call is used to call a World's system.

Performing a call on a system is not sending any transaction, but may contain a return value (at the differences of transactions that do not return any value directly).

You don't need to provide an account address or private key, as you are not signing any transaction.

USAGE

# you can use the name or address of the contract
sozo call <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.

--block-id [-b] BLOCK_ID
    The block ID (could be a hash, a number, 'pending' or 'latest') to do the call on.

World Options

--world WORLD_ADDRESS
    The address of the World contract.
    ENV: DOJO_WORLD_ADDRESS

Starknet Options

--rpc-url URL
    The Starknet RPC endpoint. [default: http://localhost:5050]
    ENV: STARKNET_RPC_URL

EXAMPLES

sozo call dojo_examples::actions::actions tile_terrain -c 1,2