Prepares a transaction to call the "relay" function on the contract.
import { relay } from "thirdweb/extensions/vote"; const transaction = relay({ contract, target: ..., value: ..., data: ..., overrides: { ... }}); // Send the transaction...
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.