Evolution SDK
Querying

Querying

Query blockchain data through providers

Querying

Evolution SDK provides a unified query interface across all providers (Blockfrost, Maestro, Koios, Kupo/Ogmios). Query UTxOs, delegation status, protocol parameters, datums, and transaction confirmations through your client.

Available Queries

MethodReturnsDescription
getUtxos(address)UTxO[]UTxOs at an address
getWalletUtxos()UTxO[]Your wallet's UTxOs
getUtxosWithUnit(address, unit)UTxO[]UTxOs containing a specific asset
getUtxoByUnit(unit)UTxOSingle UTxO holding an asset
getUtxosByOutRef(refs)UTxO[]UTxOs by output reference
getDelegation(rewardAddress)DelegationStake delegation and rewards
getDatum(hash)DataDatum by hash
getProtocolParameters()ProtocolParametersCurrent protocol parameters
awaitTx(hash)booleanWait for transaction confirmation

Quick Example

import { ,  } from "@evolution-sdk/evolution"

const  = ({
  : "preprod",
  : { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
  : { : "seed", : ..!, : 0 }
})

// Query wallet UTxOs
const  = await .()
.("Wallet has", ., "UTxOs")

// Query specific address
const  = .("addr_test1vrm9x2dgvdau8vckj4duc89m638t8djmluqw5pdrFollw8qd9k63")
const  = await .()

Next Steps