MCPcopy Create free account
hub / github.com/ccxt/ccxt / encodeRlp

Function encodeRlp

ts/src/static_dependencies/ethers/utils/rlp-encode.ts:57–64  ·  view source on GitHub ↗
(object: RlpStructuredDataish)

Source from the content-addressed store, hash-verified

55 * Encodes %%object%% as an RLP-encoded [[DataHexString]].
56 */
57export function encodeRlp(object: RlpStructuredDataish): string {
58 let result = "0x";
59 for (const v of _encode(object)) {
60 result += nibbles[v >> 4];
61 result += nibbles[v & 0xf];
62 }
63 return result;
64}

Callers

nothing calls this directly

Calls 1

_encodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…