Skip to content

signReceiveWithAuthorization

signReceiveWithAuthorization(account, domain, message): Promise<SignedAuthorization<TransferWithAuthorizationMessage>>

Defined in: src/tokens/eip3009.ts:217

Signs an EIP-3009 ReceiveWithAuthorization message.

Differs from signTransferWithAuthorization in two ways:

  1. Uses the ReceiveWithAuthorization EIP-712 type.
  2. The contract additionally enforces msg.sender == to at submission time, so only to (or a relayer impersonating to — impossible in practice) can land the tx.

Parameters

account

Account

domain

Eip3009Domain

message

TransferWithAuthorizationMessage

Returns

Promise<SignedAuthorization<TransferWithAuthorizationMessage>>