Functions available for registered users and delegated canisters
Canister ID: 7jsss-6qaaa-aaaad-aegpq-cai
Network: Internet Computer Mainnet
Bug Reports: Discord
Timestamps: All timestamp fields (created_at, expires_at, last_used, etc.) are in nanoseconds since Unix epoch (1970-01-01 00:00:00 UTC).
Nano Amounts: Returned as text strings because they exceed nat64 max value. Format: raw units (1 NANO = 1030 raw).
Node Parameter: Accepts public node alias (e.g. nanogate1). Use null for automatic node selection.
Version 1.4.2 — October 17, 2026
Before your first call: get registered
Almost every function below requires a registered principal. Without one the canister answers Err with Auth: NotRegistered or Credit: NotRegistered — the command itself is fine, the caller is not known. To register, visit nanogate.run and make a donation; you receive credits in the same step.
Call with the identity whose principal was registered. Check it with dfx identity get-principal, and select it per call with --identity <name> or globally with dfx identity use <name>. A different identity — or anonymous — fails even when the command is correct.
These seven work without registration: get_canister_version, get_canister_cycles, get_governance_principal, get_key_operators, get_pow_difficulty_send, get_pow_difficulty_receive, get_pow_challenge_info.
All functions are called via dfx canister call. Here are some examples:
About the dfx deprecation warning
Set this once per shell before you start:
export DFX_WARNING=-mainnet_plaintext_identity,-deprecation
Both values are needed, comma-separated. The second one silences a notice that dfx 0.32 prints on almost every command, beginning WARNING: dfx is deprecated, use icp-cli. That notice goes to stderr, never appears in the result, and changes nothing about what a command does — dfx 0.32 is fully compatible with the functions documented here. The first value matters more: if your identity is stored unencrypted — which includes the default identity dfx creates for you — dfx refuses mainnet commands outright until that risk is acknowledged.
DFINITY has published icp-cli as the successor to dfx but has not announced an end-of-life date. Verified with dfx 0.32 on October 17, 2026: these calls need no dfx.json, so any directory works.
Check your credits:
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_user_credits --network ic
Get Nano account balance:
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_balance \
'("nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu", null)' \
--network ic
Generic RPC call (any Nano action):
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai send_simple_nano_request \
'(record { action = "block_count"; node = null })' \
--network ic
For all Nano RPC actions and their parameters, see the Nano RPC Protocol Documentation.
For type definitions, see also the Candid UI. Note: The Candid UI appears cluttered because all error variants are fully expanded inline and cannot be collapsed. Every function shows the complete NanoError type with all 15 error categories, making signatures harder to read.
Core blockchain queries. All functions require credits unless marked free. Base cost: 10 credits, rising with data volume in bulk calls (max 50 items per request).
Note: The generic send_simple_nano_request returns a NanoResponse with raw JSON data that you need to parse yourself. For common operations, prefer the typed wrapper functions below (e.g., get_account_balance, get_version) which return structured responses.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai send_simple_nano_request '(record { action = "block_count"; node = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_balance '("nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_history '(record { account = "nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14"; count = 10 : nat32; head_hash = null; offset = null; reverse = null; node = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_multiple_balances '(vec { "nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14"; "nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu" }, null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_block_count '("nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_representative '("nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_weight '("nano_1forge6zb5tjtduqo8mr4xromissc5q8mku4m1yn71mf1apuxnhc7fszq7jm", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_accounts_frontiers '(vec { "nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14"; "nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu" }, null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_receivable '(record { account = "nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14"; count = 10 : nat32; threshold = null; source = null; node = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_network_status '(opt "nanogate1")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_version '(opt "nanogate1")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_representatives_online '(record { weight = null; accounts = null; node = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai is_block_receivable '("1A04FF7D3D343AED26132186941653900C2FC963F673B6493947E1566B74805A", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_key '("nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_from_public_key '("391A677C8560CD415CCC47E537B74CC7FB82CF63206424856C755B219AAE05E7", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_block_account '("1A04FF7D3D343AED26132186941653900C2FC963F673B6493947E1566B74805A", null)' --network icBuild, sign and broadcast Nano transactions yourself. You sign locally; the gateway only relays the signed blocks.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_account_info_for_signing '("nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu", null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai broadcast_signed_block '(record { block_type = "state"; account = "nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14"; previous = "C9973DD7A2FAE86512A4216D2ED36954D83DF9B2B786C846CDD0E2ED3D12CF66"; representative = "nano_1tk8h3yzkibbsti8upkfa69wqafz6mzfzgu8bu5edaay9k7hidqdunpr4tb6"; balance = "761594180000000000000000000000"; link = "959A79DCE2C123F30C3B3BC74F4CE8E79B15F9DE599142441F7ACD3A68B69DD1"; signature = "F10AA0089D8BBF9DCE36A64D7A5A949A4851BF0F020ED152EAE61EE8601C8284DC93E42E7C7402FAFF653A20C8B4D0539678827E9232C2EC8F1820BF9708F70E"; work = "39382d98b6430305"; subtype = opt "send"; node = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai generate_pow '(record { hash = "75DE72F147FE280F0A58962FC68BEEA42DB4D551466D32D75B1667068D107DAB"; difficulty = "fffffff800000000"; preferred_server = null })' --network icPoW helpers: get difficulties, validate work locally, or configure your private PoW source.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_pow_difficulty_send --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_pow_difficulty_receive --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai validate_work '(record { hash = "D97147F5ADD2D63260F1A85D4913131872AAC595CBF0CA0884439AB74DBD7B35"; work = "ca1caf7d61a68c90"; difficulty = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai set_force_pow '(true)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_available_pow_servers --network icView available nodes and register your private node.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_available_nodes --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai register_private_node '("https://mynode.example.com/api", opt "my-api-key", null, null)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai set_force_node '(true)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_private_node --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai remove_private_node --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai set_allow_owner_commands '(true)' --network icHelper functions for address validation and unit conversion. Most are free query calls.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_canister_version --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_governance_principal --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_key_operators --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_canister_cycles --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai validate_nano_address '("nano_1gatexyacr8fa7gerjz78yunsjzuid9p8a566k4prxcu68fcw3h9oi7619zu")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai convert_raw_to_nano '("1000000000000000000000000000000")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai convert_nano_to_raw '("1.0")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai compute_block_hash '("{\"type\":\"state\",\"account\":\"nano_3rrfgsjs653mefzpf81sqcty13cg5aseoccem5sajwjb1crqkxmdksdkhe14\",\"previous\":\"1A04FF7D3D343AED26132186941653900C2FC963F673B6493947E1566B74805A\",\"representative\":\"nano_1tk8h3yzkibbsti8upkfa69wqafz6mzfzgu8bu5edaay9k7hidqdunpr4tb6\",\"balance\":\"861594180000000000000000000000\",\"link\":\"181D48A06246B880A93210D9504BE0B7AB050C06405379DCB911C6F5B759138F\"}")' --network icQuery credit costs and crypto prices.
Note: Credits are charged per node outcall, regardless of the result. If the node returns an error (e.g. "Block not found"), credits are still deducted because the HTTP outcall was made. Validation errors (e.g. invalid address, missing parameter) are caught before the outcall and cost nothing.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_all_action_prices --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_action_price '("account_balance")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_crypto_price '("all")' --network icManage your credits and view transaction history.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_account_info --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_user_credits --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_transactions '(0, 50)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai transfer_credits_to_user '(record { to_user = principal "aaaaa-aa"; amount = 100 : nat64; note = opt "Thanks!" })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_credit_transfer_history --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_transaction_count --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_purchases --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai delete_my_account '(true)' --network icDelegate your credits to other canisters you control.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_canisters --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai add_canister_to_my_account '(record { canister_id = principal "aaaaa-aa"; credits_limit = opt 1000; daily_limit = opt 100; expires_at = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai remove_canister_from_my_account '(principal "aaaaa-aa")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai update_canister_limits '(record { canister_id = principal "aaaaa-aa"; credits_limit = opt 2000; daily_limit = null; expires_at = null })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai set_canister_active '(principal "aaaaa-aa", false)' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai transfer_canister_to_user '(principal "aaaaa-aa", principal "bbbbb-bb")' --network icDonate Nano to support the project and receive bonus credits. Credit purchases will be available after beta.
dfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_pow_challenge_info --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai request_pow_challenge --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai create_donation_with_pow '(record { want_credits = true; challenge_id = "challenge-id"; work = "solved-work" })' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai verify_my_donation '("donation-123")' --network icdfx canister call 7jsss-6qaaa-aaaad-aegpq-cai get_my_donations --network ic