MCPcopy
hub / github.com/bitpay/bitcore / toString

Method toString

packages/bitcore-wallet-client/src/lib/api.ts:405–412  ·  view source on GitHub ↗

* Convert this to a stringified JSON

()

Source from the content-addressed store, hash-verified

403 * Convert this to a stringified JSON
404 */
405 toString() {
406 $.checkState(this.credentials, 'Failed state: this.credentials at <toString()>');
407 $.checkArgument(!this.noSign, 'no Sign not supported');
408 $.checkArgument(!this.password, 'password not supported');
409
410 const output = JSON.stringify(this.toObj());
411 return output;
412 }
413
414 fromObj(credentials) {
415 $.checkArgument(credentials && typeof credentials === 'object' && !Array.isArray(credentials), 'Argument should be an object');

Callers 15

bitcoind.jsFile · 0.45
testInvGetDataFunction · 0.45
pool.jsFile · 0.45
index.jsFile · 0.45
utils.jsFile · 0.45
version.jsFile · 0.45
reject.jsFile · 0.45
inventory.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
formatTimestampFunction · 0.45
utils.jsFile · 0.45

Calls 1

toObjMethod · 0.95

Tested by 12

transformFunction · 0.36
transformFunction · 0.36
transformFunction · 0.36
setupFunction · 0.36
checkFunction · 0.36
getSignatureFunction · 0.36
createNewTxidFunction · 0.36
makeMempoolTxChainFunction · 0.36
createWorkerFunction · 0.36
toWeiFunction · 0.36