Meta Transactions

This document is better viewed at https://docs.openzeppelin.com/contracts/api/metatx

Core

ERC2771Context

import "@openzeppelin/contracts/metatx/ERC2771Context.sol";

Context variant with ERC2771 support.

constructor(address trustedForwarder) internal

isTrustedForwarder(address forwarder) → bool public

_msgSender() → address sender internal

_msgData() → bytes internal

Utils

MinimalForwarder

import "@openzeppelin/contracts/metatx/MinimalForwarder.sol";

Simple minimal forwarder to be used together with an ERC2771 compatible contract. See ERC2771Context.

getNonce(address from) → uint256 public

verify(struct MinimalForwarder.ForwardRequest req, bytes signature) → bool public

execute(struct MinimalForwarder.ForwardRequest req, bytes signature) → bool, bytes public