sozo component

component is used to interact with a World's components. It is useful for querying about a component's information, or a component value of an entity.

USAGE

sozo component <COMMAND>

Commands:
  get     Get the class hash of a component
  schema  Retrieve the schema for a component
  entity  Get the component value for an entity

SUBCOMMANDS

get

Get the class hash of a component

sozo component get <NAME>
Arguments

NAME
    The name of the component

schema

Retrieve the schema for a component

sozo component schema <NAME>
Arguments

NAME
    The name of the component

entity

Get the component value for an entity

sozo component entity <NAME> [KEYS]...
Arguments

NAME
    The name of the component

KEYS
    The keys of the entity that you want to query.
    Comma separated values e.g., 0x12345,0x69420,...

OPTIONS

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