IOTA

IOTA is a Layer-1 network built on a Move-based, object-centric protocol (the IOTA Rebased architecture, a fork of the Sui stack).

State is modeled as typed objects owned by addresses, smart contracts are written in Move, and the native token is IOTA, denominated in NANOs (1 IOTA = 1,000,000,000 NANOs).

GetBlock exposes the IOTA node JSON-RPC API: a JSON-RPC 2.0 interface over HTTP whose methods live in the iota_ (core read/write and Move utilities), iotax_ (coin, extended indexer, and governance queries), and unsafe_ (server-side transaction building) namespaces.

Key Features

  • Move + Objects: State is typed Move objects owned by addresses, not account balances in a single trie
  • JSON-RPC 2.0: A single POST endpoint; the method and positional params array select the call
  • Namespaced API: iota_ core methods, iotax_ coin/indexer/governance queries, and unsafe_ transaction builders
  • Checkpoints: Chain progress is measured in checkpoints rather than blocks
  • NANOs Precision: Balances and gas are in NANOs (1 IOTA = 1,000,000,000 NANOs)
  • Build-Sign-Submit: The node builds unsigned unsafe_ transactions; clients sign and broadcast with iota_executeTransactionBlock

TECHNICAL DISCLAIMER: AUTHORITATIVE JSON-RPC API SPECIFICATION.

GetBlock's RPC API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical specification is the IOTA node JSON-RPC API, published at docs.iota.org/iota-api-ref; protocol and developer documentation is at docs.iota.org.

This GetBlock IOTA endpoint is served over JSON-RPC (HTTP) only — there is no WebSocket endpoint — so the subscription methods iotax_subscribeEvent and iotax_subscribeTransaction are not available and are not documented here. The API is available in all three regions.

Network Information

PropertyValue
Network NameIOTA Mainnet
ProtocolMove / object model (IOTA Rebased)
Native CurrencyIOTA (1 IOTA = 1,000,000,000 NANOs)
Contract LanguageMove
APIJSON-RPC 2.0 over HTTP
Chain ProgressCheckpoints

Base URL

https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
https://shared.us-east-1.getblock.io/<ACCESS-TOKEN>/
https://shared.ap-southeast-1.getblock.io/<ACCESS-TOKEN>/

Supported Networks

NetworkJSON-RPCWSSFrankfurt, GermanyNew York, USASingapore, Singapore
Mainnet✅❌✅✅✅

Quickstart

  1. Setup project

    bashmkdir iota-quickstart && cd iota-api-quickstart && npm init --yes
  2. Install dependency

    bashnpm install axios
  3. Add code

    index.js

    javascriptconst axios = require('axios');
    let data = JSON.stringify({
      "jsonrpc": "2.0",
      "id": "getblock.io",
      "method": "iota_getChainIdentifier",
      "params": []
    });
    
    let config = {
      method: 'post',
      maxBodyLength: Infinity,
      url: 'https://shared.us-east-1.getblock.io/<ACCESS_TOKEN>/',
      headers: { 
        'Content-Type': 'application/json'
      },
      data : data
    };
    
    axios.request(config)
    .then((response) => {
      console.log(JSON.stringify(response.data));
    })
    .catch((error) => {
      console.log(error);
    });
  4. Run the script

    bashnode index.js
  5. Response

    bash{
        "id": "getblock.io",
        "jsonrpc": "2.0",
        "result": "6364aad5"
    }
  1. Setup project

    bashmkdir iota-api-quickstart && cd iota-api-quickstart
    python -m venv venv && source venv/bin/activate
  2. Install dependency

    bashpip install requests
  3. Add code

    main.py

    pythonimport requests
    import json
    
    url = "https://shared.us-east-1.getblock.io/<ACCESS_TOKEN>/"
    
    payload = json.dumps({
      "jsonrpc": "2.0",
      "id": "getblock.io",
      "method": "iota_getChainIdentifier",
      "params": []
    })
    headers = {
      'Content-Type': 'application/json'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload)
    
    print(response.text)
    
  4. Run the script

    bashpython main.py

Available Methods

Read API

MethodDescription
iota_getChainIdentifierReturns the chain identifier, a short hex string derived from the genesis checkpoint digest, that uniquely identifies the IOTA network (mainnet vs a testnet)
iota_getLatestCheckpointSequenceNumberReturns the sequence number of the most recently executed checkpoint
iota_getCheckpointReturns a checkpoint by its sequence number or digest, including its timestamp, the transaction digests it contains, and its epoch
iota_getCheckpointsReturns a paginated list of checkpoints in ascending or descending order from a cursor
iota_getObjectReturns the current state of an object by its ID, with selectable fields (type, owner, content, bcs, previous transaction)
iota_multiGetObjectsReturns the state of several objects in one call, each with the same display options
iota_tryGetPastObjectReturns an object as it existed at a specific version, if the node still retains that historical version
iota_tryMultiGetPastObjectsReturns several objects at specific past versions in one call
iota_getTransactionBlockReturns a transaction block by digest, with selectable fields: input, effects, events, object changes, and balance changes
iota_multiGetTransactionBlocksReturns several transaction blocks by digest in one call, with shared display options
iota_getEventsReturns all events emitted by a given transaction block
iota_getTotalTransactionBlocksReturns the total number of transaction blocks the network has executed since genesis
iota_getProtocolConfigReturns the protocol configuration (feature flags and limits) for a given protocol version, defaulting to the latest
iota_isTransactionIndexedOnNodeReturns whether a given transaction digest has been indexed on the serving node, so a client knows when read-after-write queries will succeed

Write API

MethodDescription
iota_executeTransactionBlockSubmits a signed transaction block (BCS-serialized) with its signatures for execution, and returns the requested effects
iota_dryRunTransactionBlockDry-runs a transaction block against the current state and returns its predicted effects and gas cost, without committing it
iota_devInspectTransactionBlockSimulates a transaction from its components for inspection, returning execution results including Move return values — without needing valid gas or signatures

Move Utils

MethodDescription
iota_getNormalizedMoveModulesByPackageReturns structured (normalized) representations of every Move module in a published package, including its structs and functions
iota_getNormalizedMoveModuleReturns a structured representation of a single Move module: its structs, exposed functions, and friends
iota_getNormalizedMoveFunctionReturns a structured representation of a single Move function, including its parameter and return types and visibility
iota_getNormalizedMoveStructReturns a structured representation of a Move struct, including its fields and abilities
iota_getMoveFunctionArgTypesReturns the argument types (object vs pure) of a Move function, which a client needs to correctly place arguments when building a call

Coin Query

MethodDescription
iotax_getBalanceReturns an address's total balance for a single coin type (IOTA by default), summed across all its coin objects
iotax_getAllBalancesReturns the total balance for every coin type an address owns, in one call
iotax_getCoinsReturns an address's individual Coin objects for a given coin type, paginated — the inputs you select when building a payment
iotax_getAllCoinsReturns all Coin objects an address owns across every coin type, paginated
iotax_getCoinMetadataReturns the metadata (symbol, name, decimals, icon) for a coin type, used to display token amounts correctly
iotax_getTotalSupplyReturns the total supply of a coin type — for a regulated/custom coin, the amount its TreasuryCap has minted
iotax_getCirculatingSupplyReturns a summary of the circulating supply of the native IOTA token

Extended API

MethodDescription
iotax_getOwnedObjectsReturns the objects owned by an address, with an optional query filter (by type, struct, or owner) and display options, paginated
iotax_queryTransactionBlocksQueries transaction blocks matching a filter (by sender, recipient, input/changed object, Move function, or time range), paginated
iotax_queryEventsQueries events matching a filter (by package, module, event type, sender, or time range), paginated
iotax_getDynamicFieldsLists the dynamic fields attached to a parent object (for example, entries of an on-chain table), paginated
iotax_getDynamicFieldObjectReturns the full object stored at a specific dynamic field of a parent object, addressed by the field name
iotax_iotaNamesLookupResolves an IOTA name (the IOTA naming service) to its registry record, including the address it points to
iotax_iotaNamesReverseLookupResolves an address to its primary registered IOTA name, if any
iotax_getCurrentEpoch (dedicated)Returns information about the current epoch: its number, validators, start time, and reference gas price
iotax_getNetworkMetrics (dedicated)Returns live network metrics — current TPS, peak TPS, total objects, addresses, packages, and current epoch/checkpoint
iotax_getTotalTransactions (dedicated)Returns the total number of transactions recorded by the indexer

Governance

MethodDescription
iotax_getReferenceGasPriceReturns the network's current reference gas price in NANOs, the baseline a transaction's gas price should meet or exceed to be included
iotax_getLatestIotaSystemStateV2Returns the latest on-chain system state on protocol version 5 and above: epoch, protocol version, the active validator set, staking pools, and system parameters
iotax_getCommitteeInfoReturns the validator committee (public keys and voting power) for an epoch, defaulting to the latest
iotax_getStakesReturns all delegated stakes owned by an address, grouped by validator, including the principal and estimated rewards
iotax_getStakesByIdsReturns delegated stakes for the given StakedIota object IDs
iotax_getValidatorsApyReturns the annualized percentage yield (APY) for each validator, for comparing staking returns
iotax_getTimelockedStakesReturns all timelocked delegated stakes owned by an address — stakes whose principal is subject to a time lock

Transaction Builder

MethodDescription
unsafe_moveCallBuilds (but does not sign or submit) an unsigned transaction that calls a Move entry function, returning BCS tx bytes ready to sign
unsafe_payBuilds an unsigned transaction that pays specified amounts of a coin to one or more recipients, selecting and splitting the given input coins
unsafe_payIotaBuilds an unsigned transaction that pays IOTA to recipients, using the input IOTA coins themselves to pay gas (no separate gas coin)
unsafe_transferObjectBuilds an unsigned transaction that transfers ownership of an object to a recipient address
unsafe_splitCoinBuilds an unsigned transaction that splits a coin object into several new coins of the specified amounts
unsafe_mergeCoinsBuilds an unsigned transaction that merges one or more coins into a primary coin, consolidating balance into a single object
unsafe_requestAddStakeBuilds an unsigned transaction that stakes IOTA coins with a validator, creating a delegated stake
unsafe_requestWithdrawStakeBuilds an unsigned transaction that withdraws a previously delegated stake, returning principal and rewards
unsafe_publishBuilds an unsigned transaction that publishes a compiled Move package (its modules and dependencies) to the network
unsafe_batchTransactionBuilds an unsigned transaction that batches several operations (transfers, Move calls) into one atomic transaction

Support

For technical support and questions:

See Also