MCPcopy Index your code
hub / github.com/bitpay/bitcore / call

Method call

packages/bitcore-node/src/rpc.ts:133–142  ·  view source on GitHub ↗
(method: string, params: any[], walletName?: string)

Source from the content-addressed store, hash-verified

131 }
132
133 async call<T = any>(method: string, params: any[], walletName?: string): Promise<T> {
134 return new Promise<T>((resolve, reject) => {
135 this.rpc.callMethod(method, params, (err, data) => {
136 if (err) {
137 return reject(err);
138 }
139 return resolve(data);
140 }, walletName);
141 });
142 }
143
144 async setWallet(walletName?: string) {
145 if (!this.walletName && !walletName) {

Callers 15

setWalletMethod · 0.95
blockMethod · 0.95
verbose_blockMethod · 0.95
getnewaddressMethod · 0.95
signrawtxMethod · 0.95
transactionMethod · 0.95
sendtoaddressMethod · 0.95
GetheadersMessageFunction · 0.80
PingMessageFunction · 0.80
FilteraddMessageFunction · 0.80
HeadersMessageFunction · 0.80
FilterclearMessageFunction · 0.80

Calls 1

callMethodMethod · 0.80

Tested by 1

sendBitcoinFunction · 0.64