Substates
Substates are the fundamental storage units on the Ootle network — components, vaults, resources, and more. The Provider interface exposes methods to read them.
Get a single substate
Section titled “Get a single substate”const substate = await provider.getSubstate("component_0x…");console.log(substate);Returns an IndexerGetSubstateResponse with the substate data and version.
Fetch multiple substates
Section titled “Fetch multiple substates”const substates = await provider.fetchSubstates([ "component_0x…", "vault_0x…",]);List recent transactions
Section titled “List recent transactions”Query recent transactions from the indexer:
const result = await provider.listRecentTransactions({ limit: 5, last_id: null });
for (const tx of result.transactions) { console.log(tx.transaction_id, tx.created_at);}Get a transaction result
Section titled “Get a transaction result”After submitting a transaction, you can poll for its result:
const result = await provider.getTransactionResult(transactionId);This is used internally by watchTransaction, but you can call it directly for custom polling logic.