Skip to main content

CAT Commands

Commands

chia_getCATWalletInfo

Gets the wallet name and id of a given CAT, by its asset id.

ParameterTypeDescription
assetIdstringAsset id.

Output Data

ParameterTypeDescription
namestringWallet name.
walletIdnumberWallet id.
successbooleanBackend success status.

chia_getCATAssetId

Gets the asset id of a CAT by its wallet id.

ParameterTypeDescription
walletIdnumberWallet id.

Output Data

The output is a hex encoded asset id of type string.

chia_spendCAT

Sends an amount of CAT mojos in a given wallet to a recipient address.

ParameterTypeDescription
walletIdnumberCAT wallet id to use coins from.
amountnumberAmount in mojos.
feenumberTransaction fee in mojos.
addressstringBech32m encoded recipient address.
waitForConfirmation? (optional)booleanWhether to wait for inclusion in a block.
memos? (optional)string[]A list of coin memos (such as hint).

Output Data

ParameterTypeDescription
transactionTransactionRecordTransaction record.
transactionIdstringTransaction id.
successbooleanBackend success status.

chia_addCATToken

Imports a CAT by its asset id into the wallet, and assigns a name to it.

ParameterTypeDescription
assetIdstringAsset id.
namestringWallet name.

Output Data

The output is a wallet id of type number.