Skip to content

Aggregate Management

Overall Usage

bash
aleph aggregate [OPTIONS] COMMAND [ARGS]...

Options

OptionTypeDescription
--helpShow this message and exit

Key Commands

CommandDescription
postCreate or update an aggregate by key or subkey
getFetch an aggregate by key or subkeys
listDisplay all aggregates associated with an account
forgetDelete an aggregate by key or subkeys
authorizeGrant specific publishing permissions to an address to act on behalf of this account
revokeRevoke all publishing permissions from an address acting on behalf of this account
permissionsDisplay all permissions emitted by an account

Post an Aggregate

Create or update an aggregate by key or subkey

Usage

bash
aleph aggregate post [OPTIONS] KEY CONTENT

Arguments

ArgumentTypeDescription
KEYTEXTAggregate key to create or update
CONTENTTEXTAggregate content in JSON format and between single quotes. E.g., {"a": 1, "b": 2}

Options

OptionTypeDescription
--subkeyTEXTSpecified subkey where the content will be replaced
--addressTEXTTarget address. Defaults to the current account address
--channelTEXTAleph Cloud network channel where the message is or will be broadcasted [default: ALEPH-CLOUDSOLUTIONS]
--inline / --no-inlineInline [default: no-inline]
--sync / --no-syncSync response [default: no-sync]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--print-message / --no-print-messagePrint the messages after posting [default: no-print-message]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# Post or update an aggregate
aleph aggregate post KEY '{"a": 1, "b": 2}'

# Post content for a specific subkey
aleph aggregate post KEY '{"a": 1}' --subkey "subkey1"

Get an Aggregate

Fetch an aggregate by key or subkeys

Usage

bash
aleph aggregate get [OPTIONS] KEY

Arguments

ArgumentTypeDescription
KEYTEXTAggregate key to fetch

Options

OptionTypeDescription
--subkeysTEXTFetch specified subkey(s) only. Must be a comma-separated list. E.g., key1 or key1,key2
--addressTEXTTarget address. Defaults to the current account address
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# Fetch an aggregate by key
aleph aggregate get KEY

# Fetch specific subkeys of an aggregate
aleph aggregate get KEY --subkeys key1,key2

List Aggregates

Display all aggregates associated with an account

Usage

bash
aleph aggregate list [OPTIONS]

Options

OptionTypeDescription
--addressTEXTTarget address. Defaults to the current account address
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--json / --no-jsonPrint as JSON instead of a rich table [default: no-json]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# List all aggregates associated with the current account
aleph aggregate list

# List all aggregates as JSON
aleph aggregate list --json

Forget an Aggregate

Delete an aggregate by key or subkeys

Usage

bash
aleph aggregate forget [OPTIONS] KEY

Arguments

ArgumentTypeDescription
KEYTEXTAggregate key to remove

Options

OptionTypeDescription
--subkeysTEXTRemove specified subkey(s) only. Must be a comma-separated list. E.g., key1 or key1,key2
--addressTEXTTarget address. Defaults to the current account address
--channelTEXTAleph Cloud network channel where the message is or will be broadcasted [default: ALEPH-CLOUDSOLUTIONS]
--inline / --no-inlineInline [default: no-inline]
--sync / --no-syncSync response [default: no-sync]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--print-message / --no-print-message[default: no-print-message]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# Forget an aggregate by its key
aleph aggregate forget KEY

# Forget specific subkeys of an aggregate
aleph aggregate forget KEY --subkeys key1,key2

Authorize an Address

Grant specific publishing permissions to an address to act on behalf of this account

Usage

bash
aleph aggregate authorize [OPTIONS] ADDRESS

Arguments

ArgumentTypeDescription
ADDRESSTEXTTarget address. Defaults to the current account address

Options

OptionTypeDescription
--chain[ARB,AVAX,BASE,BLAST,BOB,BSC,CSDK,CYBER,DOT,ETH,FRAX,INK,LINEA,LISK,METIS,MODE,NEO,NULS,NULS2,OP,POL,SOL,TEZOS,WLD,ZORA]Only on the specified chain
--typesTEXTOnly for specified message types (comma-separated list)
--channelsTEXTOnly on specified channels (comma-separated list)
--post-typesTEXTOnly for specified post types (comma-separated list)
--aggregate-keysTEXTOnly for specified aggregate keys (comma-separated list)
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--print-message / --no-print-message[default: no-print-message]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# Grant publishing permission to an address
aleph aggregate authorize ADDRESS --chain ETH

# Grant permission for specific aggregate keys
aleph aggregate authorize ADDRESS --aggregate-keys key1,key2

Revoke Permissions

Revoke all publishing permissions from an address acting on behalf of this account

Usage

bash
aleph aggregate revoke [OPTIONS] ADDRESS

Arguments

ArgumentTypeDescription
ADDRESSTEXTTarget address. Defaults to the current account address

Options

OptionTypeDescription
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--print-message / --no-print-message[default: no-print-message]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# Revoke publishing permissions from an address
aleph aggregate revoke ADDRESS

View Permissions

Display all permissions emitted by an account

Usage

bash
aleph aggregate permissions [OPTIONS]

Options

OptionTypeDescription
--addressTEXTTarget address. Defaults to the current account address
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--json / --no-jsonPrint as JSON instead of a rich table [default: no-json]
--verbose / --no-verboseDisplay additional information [default: verbose]
--debug / --no-debugEnable debug logging [default: no-debug]
--helpShow this message and exit
bash
# View all permissions for the current account
aleph aggregate permissions

# View permissions in JSON format
aleph aggregate permissions --json