Function indy::api::anoncreds::indy_prover_get_claim_offers [] [src]

#[no_mangle]
pub extern "C" fn indy_prover_get_claim_offers(
    command_handle: i32,
    wallet_handle: i32,
    filter_json: *const c_char,
    cb: Option<extern "C" fn(_: i32, _: ErrorCode, _: *const c_char)>
) -> ErrorCode

Gets all stored claim offers (see prover_store_claim_offer). A filter can be specified to get claim offers for specific Issuer, claim_def or schema only.

Params

wallet_handle: wallet handler (created by open_wallet). command_handle: command handle to map callback to user context. filter_json: optional filter to get claim offers for specific Issuer, claim_def or schema only only Each of the filters is optional and can be combines { "issuer_did": string, "schema_seq_no": string }

Returns

A json with a list of claim offers for the filter. { [{"issuer_did": string, "schema_seq_no": string}] }

Errors

Common* Wallet*