Skip to main content

ISignatureAction

thirdweb's SignatureAction extension smart contract can be used with any base smart contract. It provides a generic payload struct that can be signed by an authorized wallet and verified by the contract. The bytes data field provided in the payload can be abi encoded <-> decoded to use SignatureContract for any authorized signature action.

Methods

verify

function verify(ISignatureAction.GenericRequest req, bytes signature) external view returns (bool success, address signer)

Parameters

NameTypeDescription
reqISignatureAction.GenericRequestundefined
signaturebytesundefined

Returns

NameTypeDescription
successboolundefined
signeraddressundefined

Events

RequestExecuted

event RequestExecuted(address indexed user, address indexed signer, ISignatureAction.GenericRequest _req)

Emitted when a payload is verified and executed.

Parameters

NameTypeDescription
user indexedaddressundefined
signer indexedaddressundefined
_reqISignatureAction.GenericRequestundefined