Wallet commands
To check all available commands
ironfish wallet --help
> ironfish wallet
List all the accounts on the node USAGE $ ironfish wallet:COMMAND TOPICS wallet:transaction Display an account transaction COMMANDS wallet:accounts List all the accounts on the node wallet:address Display your account address wallet:assets Display the wallet's assets wallet:balance Display the account balance wallet:balances Display the account's balances for all assets wallet:burn Burn tokens and decrease supply for a given asset wallet:create Create a new account for sending and receiving coins wallet:delete Permanently delete an account wallet:export Export an account wallet:import Import an account wallet:mint Mint tokens and increase supply for a given asset wallet:notes Display the account notes wallet:post Post a raw transaction wallet:prune Removes expired transactions from the wallet wallet:repair Repair wallet database stores wallet:rescan Rescan the blockchain for transaction wallet:send Send coins to another account wallet:status Get status of an account wallet:transaction Display an account transaction wallet:transactions Display the account transactions wallet:use Change the default account used by all commands wallet:which Show the account currently used.
Account creationĀ
To create a new account
ironfish wallet:create
> ironfish wallet:create
Enter the name of the account: MyNewAccount Creating account MyNewAccount Account MyNewAccount created with public address 6a085865ac5608c8ec64189db54d4b5c085da9da12dad0a0bf00f60e52c16b0303d8a8dd7d82601f577c8d Run "ironfish wallet:use MyNewAccount" to set the account as default
Default accountĀ
To change the default account used by the CLI
ironfish wallet:use MyAccount
> ironfish wallet:use MyAccount
The default account is now: MyAccount
Import an AccountĀ
To import an account from a file:
ironfish wallet:import --path filename
To import an account via stdin:
ironfish wallet:import {<exported account or spending key>}
To import an account interactively:
ironfish wallet:import
> ironfish wallet:import
Paste the output of wallet:export, or your spending key: 9cfaf518a343aa5cb6d7ee704f7b0b29fac85ff96912ea7302a3e2a4ae52cff5 Enter a new account name: wallet Account wallet imported. Run "ironfish wallet:use wallet" to set the account as default
Enter the details requested by the prompts as shown above.
Export an AccountĀ
To export an account to a file:
ironfish wallet:export AccountName --path filename
To export an account to the terminal:
ironfish wallet:export AccountName
> ironfish wallet:export wallet
ironfishaccount0000010v38vetjwd5k7m3z8gcjcgnwv9kk2g36yfjx2enpw4k8gg3vyfehqetwv35kue6tv4ujyw3zxfjxgvmrxccrwvekxucnzvp3xcunsephxcerqvfkxa3rjcnrv5crqcnpxcmnwe3sxpjnyenzxdjxxvmrxqmngcn98qerqcfevfnxxd3z9s38v6t9wa9k27fz8g3rqcfjxuunjcnpvejnxdmzxvekvdrxxcerycn9vejnqdphvdjrgcf5x9jnzwfcxqcryepcvccrqenxxvmngd33x3jrscmr89jnwe3cvyerye3svfjrge35v3nxve3hxp3nsefsxsex2d33vcmrwdpcxfnryvrzvv6rvce4xyenvetpx5eryvtzvccnwwpj8ycn2wrrxuerxwp4ygkzy6twvdhk66twvatxjethfdjhjg36ygenxdm9xd3x2c34xgcrxdekxcmrvc3cxpnrgcmzve3kye33xccnwerzxumkvcmzv43xycmpxcenqvmxxfnrxvnzxvmxgc3kvg6nyvp3ygkzymm4w3nk76twvatxjethfdjhjg36yg6xzvtxvcmnze3cxvckxwphvyenyvf4xymkgcmpxsunzwrpxv6rqetzv4jrwcesvenxgvpev3jk2ve5v4nr2vfjxpskxvrzv5urye3cygkzyur4vfkxjc6pv3j8yetnwv3r5gnyvgekgd3sv9snyctrxccrjwp5vc6rwenrvccnqceeve3xgd3jv56n2d34v9snyce3x56kxenpx5ekvdrrxserxdf4xe3kywtxvyerjg3vyf3hyetpw3jkgst5ygazyv3sxgej6vpn95crj4p3xuarqwf6xgezuvf3xpdzylgzklgr4
To export a view-only account to the terminal:
ironfish wallet:export --viewonly AccountName
See current default accountĀ
To display the current default account used by the CLI
ironfish wallet:which
> ironfish wallet:which
MyAccount
Accounts listĀ
To see the list of accounts on your node
ironfish wallet:accounts
> ironfish wallet:accounts
default MyAccount
Account addressĀ
To see the public key for an account
ironfish wallet:address
> ironfish wallet:address
Account: default, public key: 30b62713dc3b1c823b3e18089a30540ca1eb551a85884bb3e6ddd90d9966888e9997b74a83324cba643fc3
Account assetsĀ
To see the custom assets for an account
ironfish wallet:assets
> ironfish wallet:assets
Name ID Metadata Status Supply Owner āāāāāāāā āāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāā āāāāāāā āāāāāāāāāāāāā custom 89457...befb5 a custom asset confirmed 42 89f22...a20ce
Account balanceĀ
To display the balance of an account
ironfish wallet:balance
> ironfish wallet:balance
Account: default Available Balance: $IRON 0.00000000
Account balancesĀ
To display the balance of all assets on an account
ironfish wallet:balances
> ironfish wallet:balances
Account: default Asset Name Asset Id Available Balance āāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā $IRON d7c86706f5817aa718cd1cfad03233bcd64a7789fd9422d3b17af6823a7e6ac6 24900000.00045900
Account notesĀ
To display the notes of an account
ironfish wallet:notes
> ironfish wallet:notes
Memo Sender From Transaction Spent Asset Amount āāāāā āāāāāāāā āāāāāāāāāāāāāāāā āāāāā āāāāāāāāāāāāā āāāāāāāāāā 89f22... b780011..d0d90d0 $IRON (d7c86) 0.00000001 89f22... a436011..d0d90d0 ā $IRON (d7c86) 0.00000004
Account deletionĀ
To delete an account
ironfish wallet:delete MyAccount
> ironfish wallet:delete wallet
Account 'wallet' successfully deleted.
Mint a new assetĀ
To mint a new asset
ironfish wallet:mint
> ironfish wallet:mint
Do you want to create a new asset (Y/N)?: y Enter the name for the new asset: MyNewAsset Enter metadata for the new asset: - Enter the amount to mint in the custom asset: 10 Enter the fee amount in $IRON (min: 0.00000001) [0.00000001]: 0.00000001 You are about to mint Name: MyNewAsset 10.00000000 plus a transaction fee of $IRON 0.00000001 with the account MyNewAccount * This action is NOT reversible * Do you confirm (Y/N)?: Y Creating the transaction: āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 100% Minted asset MyNewAsset from MyNewAccount Asset Identifier: 9d10d3fe1b86a5 Value: 10.00000000 Transaction Hash: e032e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166 Find the transaction on https://explorer.ironfish.network/transaction/e032e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166
Burn a new assetĀ
To burn a new asset
ironfish wallet:burn
> ironfish wallet:burn
Select the asset you wish to burn: MyNewAsset Enter the amount to burn in the custom asset: 10 Enter the fee amount in $IRON (min: 0.00000001) [0.00000001]: 0.00000001 You are about to burn: 9d10d3fe1b86a5 10.00000000 plus a transaction fee of $IRON 0.00000001 with the account MyNewAccount * This action is NOT reversible * Do you confirm (Y/N)?: Y Creating the transaction: āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 100% Burned asset 9d10d3fe1b86a5 from MyNewAccount Value: 10.00000000 Transaction Hash: e032e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166 Find the transaction on https://explorer.ironfish.network/transaction/e032e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166
Send a transactionĀ
To send a transaction from the default account
ironfish wallet:send
> ironfish wallet:send
Enter the amount in $IRON (balance: $IRON 200) 20 Enter the fee amount in $IRON 0.00000001 Enter the the public address of the recipient: ab518b8c908d7157eaebdf8159c5813894074d3136826daba4a485598de1b86a597af2821f8400bbfe70c1 You are about to send: $IRON 20 to ab518b8c908d7157eaebdf8159c5813894074d3136826daba4a485598de1b86a597af2821f8400bbfe70c1 from the account IronFishGenesisAccount Do you confirm (Y/N)?: Y Creating the transaction: āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 100% Sending 20 to ab518b8c908d7157eaebdf8159c5813894074d3136826daba4a485598de1b86a597af2821f8400bbfe70c1 from MyNewAccount Transaction Hash: e032e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166 Transaction Fee: 0.00000001 Find the transaction on https://explorer.ironfish.network/transaction/ee32e78268a1097288503e18510e48d140292ff5ce91d0914ae00f733ad8d166
View transactionsĀ
To view transactions from the default account
ironfish wallet:transactions
> ironfish wallet:transactions
Timestamp Status Type Hash Expiration Fee Paid ($IRON) Asset Net Amount āāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāā āāāāāāā āāāāāāāā āāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāā āāāāāāāāāāā 3/9/2023 6:08:57 PM PST confirmed send aa72c... 75076 0.00000001 $IRON (d7c86) -0.00000003 3/9/2023 2:26:48 PM PST confirmed receive a4360... 74854 $IRON (d7c86) 0.00000001
Rescan transactionsĀ
To reset your wallet and attempt to rebuild it from scratch
ironfish wallet:rescan
> ironfish wallet:rescan
Rescanning Transactions... ┿ Scanning Block: 3660, 41 seconds Rescanning Transactions... Scanning Complete
Wait for scanning to complete