encodeSafeTransferFrom

Encodes the "safeTransferFrom" function into a Hex string with its parameters.

Example

import { encodeSafeTransferFrom } "thirdweb/extensions/erc1155";
const result = encodeSafeTransferFrom({
from: ...,
to: ...,
tokenId: ...,
value: ...,
data: ...,
});

Parameters

Returns

The encoded hexadecimal string.