Docs

encode

Encodes a transaction object into a hexadecimal string representation of the encoded data.

Example

import { encode } from "thirdweb";
const encodedData = await encode(transaction);

Parameters

Returns

A promise that resolves to the encoded data as a hexadecimal string.