safeTransferFrom

Prepares a transaction to call the "safeTransferFrom" function on the contract.

Example

import { safeTransferFrom } from "thirdweb/extensions/erc1155";
const transaction = safeTransferFrom({
contract,
from: ...,
to: ...,
tokenId: ...,
value: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.