pub async fn query_contract_data_with_fallback<P>(
provider: &P,
contract_hash: Hash,
key: ScVal,
error_context: &str,
) -> Result<GetLedgerEntriesResponse, StellarTransactionUtilsError>Expand description
Query contract data with Persistent/Temporary durability fallback.
Queries contract data storage, trying Persistent durability first, then falling back to Temporary if not found. This handles both production tokens (Persistent) and test tokens (Temporary).
§Arguments
provider- Stellar provider for querying ledger entriescontract_hash- Contract hash (Hash)key- ScVal key to queryerror_context- Context string for error messages
§Returns
GetLedgerEntriesResponse or error if query fails