getBytecode

Retrieves the bytecode of a contract.

Example

import { getBytecode } from "thirdweb/contract";
const bytecode = await getBytecode(contract);

Parameters

Returns

A Promise that resolves to the bytecode of the contract.