autobahn.xbr._util


Module Contents

Functions

make_w3([gateway_config])

Create a Web3 instance configured and ready-to-use gateway to the blockchain.

unpack_uint128(data)

pack_uint128(value)

unpack_uint256(data)

pack_uint256(value)

pack_ethadr(→ Union[List[int], Dict[str, int]])

param value:

unpack_ethadr(→ Union[bytes, str])

param packed_value:

autobahn.xbr._util.make_w3(gateway_config=None)[source]

Create a Web3 instance configured and ready-to-use gateway to the blockchain.

Parameters:

gateway_config (dict) – Blockchain gateway configuration.

Returns:

Configured Web3 instance.

Return type:

web3.Web3

autobahn.xbr._util.unpack_uint128(data)[source]
autobahn.xbr._util.pack_uint128(value)[source]
autobahn.xbr._util.unpack_uint256(data)[source]
autobahn.xbr._util.pack_uint256(value)[source]
autobahn.xbr._util.pack_ethadr(value: bytes | str, return_dict: bool = False) List[int] | Dict[str, int][source]
Parameters:
  • value

  • return_dict

Returns:

autobahn.xbr._util.unpack_ethadr(packed_value: List[int] | Dict[str, int], return_str=False) bytes | str[source]
Parameters:
  • packed_value

  • return_str

Returns: