Prepares a transaction to call the "relay" function on the contract.
import { sendTransaction } from "thirdweb";import { relay } from "thirdweb/extensions/vote"; const transaction = relay({ contract, target: ..., value: ..., data: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function relay( options: BaseTransactionOptions< RelayParams | { asyncParams: () => Promise<RelayParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "relay" function.
let options: BaseTransactionOptions< RelayParams | { asyncParams: () => Promise<RelayParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.