Skip to main content

Account Interface

The Account Interface is evaluated, after the Wallet Interface, repeatedly through a prompt within the wallet binary.

It is responsible for the creation and management of account addresses and their outputs, tokens, native tokens, NFTs...

Commands

addresses

Lists all account addresses.

Example

> Account "main": addresses

balance

Prints the account balance.

Parameters

NameOptionalDefaultExample
addressesN/Arms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3

Examples

Compute the balance of account.

> Account "main": balance

Compute the balance of given addresses.

> Account "main": balance rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3

burn-native-token

Burns a native token.

Parameters

NameOptionalDefaultExample
token_idN/A0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000
amountN/A100

Example

Burn the provided amount of a native token.

> Account "main": burn-native-token 0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000 100

burn-nft

Burns an NFT.

Parameters

NameOptionalDefaultExample
nft_idN/A0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

Example

Burn a provided NFT.

> Account "main": burn-nft 0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

claim

Tries to claim outputs with storage deposit return, expiration or timelock unlock conditions.

Parameters

NameOptionalDefaultExample
output_idN/A0xd5dff9ee869dfa7796d5132b220cb5c00146c36abba27d3562e2d726decb50850000

Examples

Try to claim all outputs with storage deposit return, expiration or timelock unlock conditions.

> Account "main": claim

Try to claim a specific output.

> Account "main": claim 0xd5dff9ee869dfa7796d5132b220cb5c00146c36abba27d3562e2d726decb50850000

claimable-outputs

Lists all outputs that can currently be claimed by this account and for how long.

Examples

> Account "main": claimable-outputs

clear

Clears the terminal.

Example

> Account "main": clear

consolidate

Tries to consolidate outputs into a single one.

Note that only Basic Outputs with only an address unlock condition can be consolidated.

Example

> Account "main": consolidate

create-alias-output

Create a new alias output.

Example

> Account "main": create-alias-output

create-native-token

Creates a native token.

Parameters

NameOptionalDefaultExample
circulating_supplyN/A1000
maximum_supplyN/A1000
foundry_metadata_hexNone0xabcdef
foundry_metadata_fileNonemetadata.json

Examples

Create a native token with a maximum supply.

> Account "main": create-native-token 1000 1000

Create a native token with a maximum supply and hexadecimal foundry metadata.

> Account "main": create-native-token 1000 1000 --foundry-metadata-hex 0xabcdef

Create a native token with a maximum supply and foundry metadata from a file.

> Account "main": create-native-token 1000 1000 --foundry-metadata-file metadata.json

decrease-voting-power

Decreases the voting power of the account.

Parameters

NameOptionalDefaultExample
amountN/A100000

Example

Decrease the voting power of the account by 100000.

> Account "main": decrease-voting-power 100000

destroy-alias

Destroys an alias.

Parameters

NameOptionalDefaultExample
alias_idN/A0xb2bcba092bfb3fe3a12afcf21115016b27d833a7c456404fe2fe0921799f24dd

Example

> Account "main": destroy-alias 0xb2bcba092bfb3fe3a12afcf21115016b27d833a7c456404fe2fe0921799f24dd

destroy-foundry

Destroys a foundry.

Parameters

NameOptionalDefaultExample
foundry_idN/A0x08b2bcba092bfb3fe3a12afcf21115016b27d833a7c456404fe2fe0921799f24dd0100000000

Example

> Account "main": destroy-foundry 0x08b2bcba092bfb3fe3a12afcf21115016b27d833a7c456404fe2fe0921799f24dd0100000000

exit

Exits the cli-wallet.

Example

> Account "main": exit

faucet

Requests funds from a faucet.

Parameters

NameOptionalDefaultExample
addressThe latest address of the accountrms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
urlhttps://faucet.testnet.shimmer.network/api/enqueuehttp://localhost:8091/api/enqueue

Examples

Request funds from the default faucet to the latest account address.

> Account "main": faucet

Request funds from the default faucet to a given address.

> Account "main": faucet rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3

Request funds from a given faucet to a given address.

> Account "main": faucet rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 http://localhost:8091/api/enqueue

help

Displays the account interface usage.

Example

> Account "main": help

increase-voting-power

Increases the voting power of the account.

Parameters

NameOptionalDefaultExample
amountN/A100000

Example

Increase the voting power of the account by 100000.

> Account "main": increase-voting-power 100000

melt-native-token

Melts a native token.

Parameters

NameOptionalDefaultExample
token_idN/A0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000
amountN/A100

Example

Melt the provided amount of a native token.

> Account "main": melt-native-token 0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000 100

mint-native-token

Mints more of a native token.

Parameters

NameOptionalDefaultExample
token_idN/A0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000
amountN/A10

Example

Mint 10 additional native tokens.

> Account "main": mint-native-token 0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000 10

mint-nft

Mints an NFT.

IOTA NFT Standard - TIP27.

Parameters

NameOptionalDefaultExample
addressThe first address of the accountrms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
immutable_metadata_hexNone0xabcdef
immutable_metadata_fileNonemetadata.json
metadata_hexNone0xabcdef
metadata_fileNonemetadata.json
tagNone0xabcdef
senderNonerms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
issuerNonerms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3

Examples

Mint an NFT to the latest address of the account.

> Account "main": mint-nft

Mint an NFT to a given address.

> Account "main": mint-nft rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3

Mint an NFT to a given address with hexadecimal immutable metadata and metadata from a file.

> Account "main": mint-nft rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 --immutable-metadata-hex 0xabcdef --metadata-file metadata.json

Mint an NFT to a given address with hexadecimal tag and sender feature.

> Account "main": mint-nft --tag 0xabcdef --sender rms1qq5k0ut6nl2vpyehdvg5k4ygyntd4r44t9lw2ksex280x60lc2fmcgdsmku

new-address

Generates a new address.

Example

> Account "main": new-address

output

Displays an output that is stored in the account.

Parameters

NameOptionalDefaultExample
output_idN/A0x1c7a765db0c1f5eceb0ea5578585359c5b0c1ab8d958829f5990997b93f0ec7d0100

Example

> Account "main": output 0x1c7a765db0c1f5eceb0ea5578585359c5b0c1ab8d958829f5990997b93f0ec7d0100

outputs

Displays all outputs that are stored in the account.

Example

> Account "main": outputs

participation-overview

Calculates the participation overview of the account.

Parameters

NameOptionalDefaultExample
event_idsN/A0x8d6ffcd8d6c9f049b5732adb8900bb6f6a28e282b15a2297405a28181eebd515

Example

Get the participation overview for all events.

> Account "main": participation-overview

Get the participation overview only for a specific event.

> Account "main": participation-overview -e 0x8d6ffcd8d6c9f049b5732adb8900bb6f6a28e282b15a2297405a28181eebd515

send

Sends an amount to an address.

Parameters

NameOptionalDefaultExample
addressN/Arms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
amountN/A1000000
return_address1strms1qrvddncqclzrxrkxhuy4cjr9aqth5nu0h5kuzhr4phj5u67mmq29z0r9v2g
expiration1d72h
allow_micro_amountfalseN/A

Example

> Account "main": send rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 1000000

send-native-token

Sends native tokens to an address with StorageDepositReturn and Expiration Unlock Condition.

To send the native tokens together with the required storage deposit and without StorageDepositReturn and Expiration, provide true for gift_storage_deposit.

Parameters

NameOptionalDefaultExample
addressN/Arms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
token_idN/A0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000
amountN/A100
gift_storage_depositfalsetrue

Example

Sending with storage deposit return and expiration:

> Account "main": send-native-token rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000 100

Sending without storage deposit return and expiration, gifting the required storage deposit:

> Account "main": send-native-token rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 0x08860e1f3593ba86c597cf86f61d8b04d8a714c02c7c5da7132d45be9c2ce6445c0300000000 100 true

send-nft

Sends an NFT to an address.

Parameters

NameOptionalDefaultExample
addressN/Arms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3
nft_idN/A0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

Example

> Account "main": send-nft rms1qztwng6cty8cfm42nzvq099ev7udhrnk0rw8jt8vttf9kpqnxhpsx869vr3 0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

stop-participating

Stops participating to a given event.

Parameters

NameOptionalDefaultExample
event_idN/A0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

Example

> Account "main": stop-participating 0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c

sync

Synchronises the account.

Example

> Account "main": sync

transaction

Shows the details of given Transaction ID

Parameters

NameOptionalDefaultExample
transaction_idN/A0x84fe6b1796bddc022c9bc40206f0a692f4536b02aa8c13140264e2e01a3b7e4b

Example

> Account "main": transaction 0x84fe6b1796bddc022c9bc40206f0a692f4536b02aa8c13140264e2e01a3b7e4b

transactions

Lists all account transactions.

Parameters

NameOptionalDefaultExample
show_detailsfalsetrue

Example

> Account "main": transactions

unspent-outputs

Displays all unspent outputs that are stored in the account.

Example

> Account "main": unspent-outputs

vote

Casts given votes for a given event.

Parameters

NameOptionalDefaultExample
event_idN/A0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c
answers✘ (at least one)N/A0 1 1 0

Example

> Account "main": vote 0x397ae8552dcf0dc604a44c9d86a5005d09f95d67e2965ea3b1c1271f9a9ae44c 0 1 1 0

voting-output

Gets the voting output of the account.

Example

> Account "main": voting-output

voting-power

Gets the voting power of the account.

Example

> Account "main": voting-power