LedgerApiRequest
data class LedgerApiRequest(val requestMethod: LedgerApiMethod, val resource: String, val body: JsonElement? = null, val query: JsonObject? = null, val path: JsonObject? = null)
Params of DappMethod.LEDGER_API — the wallet acting as an authenticating proxy onto the JSON Ledger API.
Note there is no headers field in OpenRPC 0.5.0. That is a feature, not an omission to work around: headers are how a caller would smuggle its own Authorization, and the whole point of proxying is that the wallet supplies that.
Constructors
Link copied to clipboard
constructor(requestMethod: LedgerApiMethod, resource: String, body: JsonElement? = null, query: JsonObject? = null, path: JsonObject? = null)