relay

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

Example

import { relay } from "thirdweb/extensions/vote";
const transaction = relay({
contract,
target: ...,
value: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.