extractMinimalProxyImplementationAddress

Extracts the implementation address from a given bytecode string if it matches any of the known minimal proxy patterns.

Example

import { extractMinimalProxyImplementationAddress } from "thirdweb/utils";
const bytecode = "0x363d3d373d3d3d363d73...";
const implementationAddress =
extractMinimalProxyImplementationAddress(bytecode);
function extractMinimalProxyImplementationAddress(
bytecode: string,
): string | undefined;

Parameters

The bytecode string to extract the implementation address from.

Type

let bytecode: string;

Returns

let returnType: string | undefined;

The implementation address as a string if a match is found, otherwise undefined.