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

Method _post

src/urchain.ts:71–85  ·  view source on GitHub ↗
(command: string, data: any)

Source from the content-addressed store, hash-verified

69 }
70
71 async _post(command: string, data: any) {
72 const options = {
73 json: data,
74 headers: {
75 "Content-Type": "application/json",
76 },
77 };
78
79 const httpClient = await this.getHttpClient();
80 return httpClient
81 .post(command, options)
82 .json()
83 .then(this._parseResponse)
84 .catch(this._parseError);
85 }
86
87 async health(): Promise<string> {
88 return await this._get("health", {});

Callers 11

balanceMethod · 0.95
walletBalanceMethod · 0.95
tokenBalanceMethod · 0.95
tokenListMethod · 0.95
utxosMethod · 0.95
tokenutxosMethod · 0.95
refreshMethod · 0.95
broadcastMethod · 0.95
bestBlockMethod · 0.95
allTokensMethod · 0.95
tokenInfoMethod · 0.95

Calls 1

getHttpClientMethod · 0.95

Tested by

no test coverage detected