This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
const original = new Uint8Array(20)const addr = Address(original)// Modifying original doesn't affect addressoriginal[0] = 0xFFconsole.log(addr[0]) // Still 0x00
// ABI-encoded addresses are left-padded to 32 bytesconst abiEncoded = new Uint8Array(32)// Last 20 bytes are the addressconst addr = Address(abiEncoded.slice(12, 32))