MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / _get

Method _get

src/urchain.ts:55–69  ·  view source on GitHub ↗
(command: string, params: any)

Source from the content-addressed store, hash-verified

53 }
54
55 async _get(command: string, params: any) {
56 // Create query with given parameters, if applicable
57 params = params || {};
58
59 const options = {
60 params,
61 };
62
63 const httpClient = await this.getHttpClient();
64 return httpClient
65 .get(command, options)
66 .json()
67 .then(this._parseResponse)
68 .catch(this._parseError);
69 }
70
71 async _post(command: string, data: any) {
72 const options = {

Callers 2

healthMethod · 0.95
getFeePerKbMethod · 0.95

Calls 1

getHttpClientMethod · 0.95

Tested by

no test coverage detected