A string
representing the zero address 0x0000000000000000000000000000000000000000
.
Useful for passing the zero address to various functions.
A string
representing the native token address 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
.
Useful for passing the native token address (ETH or equivalent) to various functions.
A double
representing the value 1000000000000000000
.
Useful for converting values between different decimal places.
Constants.ENTRYPOINT_ADDRESS_V06
A string
representing the entrypoint address for Account Abstraction 0.7.0 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
.
Constants.ENTRYPOINT_ADDRESS_V07
A string
representing the entrypoint address for Account Abstraction 0.7.0 0x0000000071727De22E5E9d8BAf0edAc6f37da032
.
Fetches the social profiles for the given address or ENS using a Thirdweb client.
A ThirdwebClient
object representing the client to use for fetching social profiles.
A string
representing the wallet address or ENS to fetch social profiles for.
A SocialProfiles
object containing the fetched social profiles.
Fetches the ENS name for the given address using a Thirdweb client.
A ThirdwebClient
object representing the client to use for fetching the ENS name.
A string
representing the wallet address to fetch the ENS name for.
A string
representing the fetched ENS name.
Fetches the address for the given ENS name using a Thirdweb client.
A ThirdwebClient
object representing the client to use for fetching the address.
A string
representing the ENS name to fetch the address for.
A string
representing the fetched address.
Fetches chain data for a specified chain ID using a Thirdweb client.
A ThirdwebClient
object representing the client to use for fetching chain data.
A BigInteger
representing the chain ID to fetch data for.
A ThirdwebChainData
object containing the fetched chain data such as native token name, symbol, decimals, etc.
Concatenates the given hex strings into a single hex string.
An array of hexadecimal string
values to concatenate.
The concatenated hexadecimal string
.
Hashes the given message bytes with a prefixed message for Ethereum signing.
A byte[]
representing the message to hash.
A byte[]
representing the hashed message.
Hashes the given message using SHA3 Keccak hashing.
A string
representing the message to hash.
A string
representing the hashed message in hexadecimal format.
Converts a byte array to a hexadecimal string.
A byte[]
representing the byte array to convert.
A string
representing the converted hexadecimal string.
Converts a hexadecimal string to a byte array.
A string
representing the hexadecimal string to convert.
A byte[]
representing the converted byte array.
Converts a regular string to a hexadecimal string.
A string
representing the regular string to convert.
A string
representing the converted hexadecimal string.
Gets the current Unix timestamp in seconds.
A long
representing the current Unix timestamp.
Gets the Unix timestamp for 10 years from now.
A long
representing the Unix timestamp 10 years from now.
Replaces an IPFS URI with a specified gateway.
A string
representing the IPFS URI to replace.
A string
representing the gateway to use. Default is Constants.FALLBACK_IPFS_GATEWAY
.
A string
representing the replaced URI with the specified gateway.
Converts Ether values to Wei.
A string
representing the Ether value to convert.
A string
representing the converted Wei value.
Converts Wei values to Ether.
A string
representing the Wei value to convert.
An int
specifying the number of decimals to display. Default is 4
.
A bool
indicating whether to add commas to the output. Default is false
.
A string
representing the converted Ether value.
Generates a Sign-In With Ethereum (SIWE) message.
A LoginPayloadData
object containing the payload data for generating the SIWE message.
A string
representing the generated SIWE message.
Checks if a given chain ID corresponds to zkSync.
A BigInteger
representing the chain ID to check.
A bool
indicating whether the chain ID corresponds to zkSync.
Converts an Ethereum address to its checksum format.
A string
representing the Ethereum address to convert.
A string
representing the checksummed Ethereum address.
Adjusts the decimal places of a value.
A BigInteger
representing the value to adjust.
An int
specifying the original number of decimals.
An int
specifying the target number of decimals.
A BigInteger
representing the value adjusted to the new decimals.
Converts typed data into a JSON string suitable for external wallet interaction.
A TypedData<TDomain>
object representing the typed data to convert.
A TMessage
object representing the message to include in the JSON.
A string
representing the JSON formatted data.
socialProfiles