jovay wallet
jovay wallet [sub-command] [options]Description
jovay wallet is used to manage wallet configurations, query on-chain status (like address and balance), and execute transactions such as transfers and approvals.
set
Update configuration for wallet.
jovay wallet set [options]--sk, --secret-key [0x string]
Provide a new private key to replace the one in the current wallet.
Security Note: This action is irreversible. If omitted, the private key will remain unchanged.
--origin-enc-key [string]
The current encryption key for the wallet. This is required to unlock an encrypted wallet when changing the key or disabling encryption.
--enc
Enables encryption on wallet. If--enc-keyis not also used, a random key will be generated and provided to you (be sure to save it!).
--enc-key [string]
New key to encrypt the wallet's private key. CLI will process it with SHA-256 to generate a high-strength encryption key. Using this option automatically enables encryption (not need to add--encseparately).
-h, --help
Display help information for this command.
Practical Tips
- Set up a new wallet (run with
--sk): You can append--encor--enc-keyin the same command to directly store this new wallet in its most secure, encrypted format. - Modify current wallet (run without
--sk):- Encrypt plaintext wallet: Use
--encor--enc-keyon an unencrypted wallet. - Decrypt an encrypted wallet: Provide only the current key with
--origin-enc-keyto revert it to plaintext. - Change the encryption key: Use both the old key (
--origin-enc-key) and the new key (--enc-key) together.
- Encrypt plaintext wallet: Use
address
Get current wallet address.
jovay wallet addressairdrop
Claims 0.001 Jovay Sepolia ETH from the official faucet, limited to once every 24 hours.
jovay wallet airdropbalance
Gets the balance of the native token (ETH) or a specific ERC20 token for a given address.
jovay wallet balance [options]--address [0x string]
The address to get balance of. When not provided, the address in wallet will be used.
--token [0x string]
The ERC20 token address to query. If omitted, the native token (ETH) balance will be return.
--rpc [string]
Overwrite the chain rpc when query balance.
--l1
Query balance on Ethereum (or Ethereum Sepolia) instead of on Jovay (or Jovay Sepolia Testnet).
--block [0x string / bigint]
Query balance for specific block height.
-h, --help
Display help information for this command.
approve
Sets the allowance for a spender to use your tokens. You can see Token Standard for more information.
jovay wallet approve [options]--amount <bigint>(required) \The amount of token you want to set the allowance. Note: This value must be specified in the token's smallest unit.
Example: Approve
0.01 USDCwith 6 decimals to spender, should enter10000.
--to <0x string>(required)
The spender's address.
--token <0x string>(required)
The ERC20 token address to approve.
--enc-key [string]
The current encryption key for the wallet. Required when use encrypted wallet.
--sk, --secret-key [0x string]
Overwrite the wallet to use.
--rpc [string]
Overwrite the chain rpc when send transaction.
--l1
Send transaction to Ethereum (Sepolia) instead of to Jovay (Sepolia Testnet).
--broadcast
Broadcasts the signed transaction to the blockchain network. If flag is omitted, CLI only output the raw signed transaction data without sending it.
-h, --help
Display help information for this command.
transfer
Transfer the native token (ETH) or a specific ERC20 token to a given address.
jovay wallet transfer [options]--amount <bigint>(required) \The amount of token you want to transfer. Note: This value must be specified in the token's smallest unit.
Example: Transfer
0.001 ETHwith 18 decimals to recipient, should enter1000000000000000.
--to <0x string>(required)
The recipient's address.
--token [0x string]
The ERC20 token address to transfer. If flag is omitted, CLI will transfer native token.
--enc-key [string]
The current encryption key for the wallet. Required when use encrypted wallet.
--sk, --secret-key [0x string]
Overwrite the wallet to use.
--rpc [string]
Overwrite the chain rpc when send transaction.
--l1
Send transaction to Ethereum (Sepolia) instead of to Jovay (Sepolia Testnet).
--broadcast
Broadcast the signed transaction to the blockchain network. If flag is omitted, CLI only output the raw signed transaction data without sending it.
-h, --help
Display help information for this command.