MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / toJSON

Method toJSON

lib/script/script.js:415–417  ·  view source on GitHub ↗

* Convert script to a hex string. * @returns {String}

()

Source from the content-addressed store, hash-verified

413 */
414
415 toJSON() {
416 return this.toRaw().toString('hex');
417 }
418
419 /**
420 * Inject properties from json object.

Callers

nothing calls this directly

Calls 2

toRawMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected