Skip to main content

Module tokens

Module tokens 

Source
Expand description

Token registry, wallet, identity, coins, transactions

Structs§

CoinBalance
SendPreview
Build a native XEC send transaction (preview only — does not broadcast). Returns the raw transaction hex and a fee estimate for user confirmation.
TokenEntry
TxRecord

Functions§

add_token
Adds token.
agent_request_key_role
Agent-facing keyRole request — purpose grant only, never seed material.
agent_request_mixnet_key_role
Agent-facing mixnet keyRole request (≠ session-authentication).
build_send_xec
Builds send-xec.
confirm_send_xec
Broadcast a previously built transaction.
default_tokens
Default token list.
derive_wallets_from_seed
derive-wallets-from seed.
disable_nym_relay
Disables the Nym relay.
discover_models
Discovers models.
enable_nym_relay
Enables the Nym relay.
fetch_torrent_telemetry
Fetches torrent-telemetry.
fetch_wallet_portfolio
Fetches wallet-portfolio.
generate_bip39_seed
generate-bip39 seed.
generate_front_door_invite
Generates a front-door invite.
get_chat_session_did
Gets chat-session-did.
get_coin_balances
Gets coin-balances.
get_tokens
Gets tokens.
get_torrent_bandwidth_policy
Gets torrent-bandwidth-policy.
get_transaction_history
Gets transaction-history.
import_external_seed
import-external seed.
is_first_run
true when first-run.
list_chat_session_share_targets
Lists chat-session share targets.
list_ontology_shares_for_contact
Lists ontology shares for a contact.
list_ontology_shares_for_session
Lists ontology shares for a session.
list_workbench_ontologies
Lists workbench ontologies.
load_identity
Loads identity.
load_tokens_from_disk
Loads tokens-from-disk.
mint_semantic_token
Mints a semantic token.
nym_live_status_json
nym-live-status as JSON.
read_identity
Reads identity.
remove_token
Removes token.
run_agent_inference
Runs agent inference.
save_identity
Saves identity.
save_tokens_to_disk
Saves tokens-to-disk.
send_ecash_token
Sends an eCash token.
set_torrent_bandwidth_policy
Sets torrent-bandwidth-policy.
set_workbench_seed
Sets workbench-seed.
set_workbench_torrent_policy
Sets workbench-torrent-policy.
sync_workbench_torrent_seeds
Syncs workbench torrent seeds.
to_hex
Converts to hex.
toggle_nym_relay
Toggles nym-relay.
toggle_stark_prover
Toggles stark-prover.
tokens_file_path
Tokens file path.
update_chat_contact_categories
Updates chat contact categories.
update_solar_input
Updates solar input.
workbench_import_ontology_uri
workbench-import-ontology URI.