@JvmStatic @JvmOverloads fun getSchemaJson(pool: Pool, wallet: Wallet, schemaId: String, optionsJson: String = "{}"): Single<String>
Gets schema json data for specified schema id. If data is present inside of cache, cached data is returned. Otherwise data is fetched from the ledger and stored inside of cache for future use. Read more here
Pay your attentional on the Cache.getSchema. This method is marked as EXPERIMENTAL.
wallet
- is the current wallet
optionsJson
- is the fetching options
{
noCache: (optional, false by default) Skip usage of cache,
noUpdate: (optional, false by default) Use only cached data, do not try to update.
noStore: (optional, false by default) Skip storing fresh data if updated
minFresh: (optional, -1 by default) Return cached data if not older than this many seconds. -1 means do not check age.
}
Return
the schema Json String
{
id: identifier of schema
attrNames: array of attribute name strings
name: schema's name string
version: schema's version string,
ver: version of the Schema json
}