To Checksum Address

Applies the EIP-55 checksum to an Ethereum address.

  • _address (string) The Ethereum address to apply the checksum.

  • RETURN (string) Returns a string of the Ethereum address.

(async function () {
  const address = await Onyx.xcn.toChecksumAddress('0x2775b1c75658Be0F640272CCb8c72ac986009e38');
  console.log('Address', address);
})().catch(console.error);

Last updated