Querying
You can use IkaClient to query the Ika protocol state and objects. This guide covers all available query methods.
Client Initialization
Before making any queries, ensure your client is properly initialized:
Basic Object Queries
Get dWallet
Retrieve a single dWallet by its ID:
Get Multiple dWallets
Efficiently retrieve multiple dWallets in a single batch request:
Get dWallet Capabilities
Query dWallet capabilities owned by an address with pagination support:
Get Presign
Retrieve a presign session object:
Get Encrypted User Secret Key Share
Query an encrypted user secret key share:
Get Partial User Signature
Retrieve a partial user signature object:
Get Sign Session
Retrieve a sign session object with signature parsing:
State-Based Queries
Polling for State Changes
Query objects in specific states with customizable polling behavior:
Presign State Polling
Encrypted User Secret Key Share State Polling
Partial User Signature State Polling
Sign Session State Polling
Encryption Key Queries
Get Active Encryption Key
Retrieve the active encryption key for a specific address:
Get All Network Encryption Keys
Retrieve all available network encryption keys:
Get Latest Network Encryption Key
Get the most recent encryption key:
Get Specific Network Encryption Key
Retrieve a specific encryption key by ID:
Get dWallet's Network Encryption Key
Automatically detect which encryption key a dWallet uses:
Get Configured Network Encryption Key
Get the network encryption key based on client configuration:
Protocol Parameters and Configuration
Get Protocol Public Parameters
Retrieve cryptographic parameters for the network. Parameters are cached by encryption key ID and curve:
Get Current Epoch
Retrieve the current network epoch:
Configure Encryption Key Options
Manage client encryption key settings:
Cache Management
Check Cached Parameters
Check if protocol parameters are cached for an encryption key and curve:
Cache Invalidation
Manage client cache for optimal performance: