@lelantos-org/sdk / protocol / signPermit2Witness
Function: signPermit2Witness()
ts
function signPermit2Witness(args): Promise<Permit2Sig>;Defined in: @lelantos-org/sdk/dist/permit2/witness.d.ts:41
Sign the Permit2 witness transfer MASP.deposit verifies.
Single-token unless feeToken and maxFee are both given, in which case the signature is the batch form the pool checks for a relayer note paid in another asset. Which one to sign follows isSameFeeAsset: signing the wrong form reverts on chain as InvalidSigner.
Parameters
| Parameter | Type |
|---|---|
args | SignPermit2Args |
Returns
Promise<Permit2Sig>
Throws
when only one of feeToken and maxFee is set.