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

Function encode_uint

python/ccxt/static_dependencies/starknet/hash/utils.py:69–70  ·  view source on GitHub ↗
(value: int, bytes_length: int = 32)

Source from the content-addressed store, hash-verified

67
68
69def encode_uint(value: int, bytes_length: int = 32) -> bytes:
70 return value.to_bytes(bytes_length, byteorder="big")
71
72
73def encode_uint_list(data: List[int]) -> bytes:

Callers 2

encode_uint_listFunction · 0.85
get_checksum_addressFunction · 0.85

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…