Accounts

Learn how to create, fund, manage, and interact with blockchain accounts using the Supra CLI.

What are Supra CLI Accounts?

Accounts in the Supra CLI are blockchain identities used to interact with the Supra network. They allow users to perform actions such as creating new accounts, funding them with tokens, checking balances, and transferring assets. These accounts serve as the foundation for managing transactions and participating in blockchain activities.

For the latest RPC URL, please refer to the Supra Network Information page.


CLI Commands for Accounts

Here's how to use the Supra CLI commands to work with accounts:

Not all CLI commands are listed here. Use the --help option to see the full list.

Fund Your Profiles

Fund an account with SUPRA tokens from a faucet URL:

supra move account fund-with-faucet [OPTIONS] --url [URL_RPC]

Additional Options:

  • [OPTIONS]

    • --sender-account <SENDER_ACCOUNT>: Sender account address

    • --profile <PROFILE>: Profile to use from the CLI config

    • --url: <URL_RPC>: Full node on the network

    • --account <ACCOUNT>: Address to fund

If the account wasn't previously created, it will be created when being funded

Example:

Result:

Check Profile Balance

Show the account's balance of SUPRA coins:

Additional Options:

  • [OPTIONS]

    • --account <ACCOUNT>: Address of the account you want to list balance

    • --profile <PROFILE>: Profile to use from the CLI config

    • --url <URL_RPC>: URL to a full node on the network

Example:

Result:

Transfer $SUPRA

Transfer $SUPRA between accounts

Additional Options:

  • [OPTIONS]

    • --account <ACCOUNT>: Address of account to send $SUPRA

    • --url <URL_RPC>: URL to a full node on the network

    • --amount <AMOUNT> : Amount of Quants (10^-8 SUPRA) to transfer

This will be used to override associated settings such as the REST URL, the Faucet URL, and the private key arguments.

Example:

Result:

Multiple Wallets

Creates a wallet requiring multiple approvals for transactions.

Additional Options:

  • [OPTIONS]

    • --owner-address <OWNER_ADDRESS>: Specifies the blockchain address of the account owner for a given operation.

    • --sequence-number <SEQUENCE_NUMBER>: Indicates the unique sequence number to track and order transactions for the specified account.

Example:

Result:

Last updated