@armada/sdk / index / buildGaslessCrossChainShield
Function: buildGaslessCrossChainShield()
buildGaslessCrossChainShield(
input,shieldPrivateKey):Promise<{userNote:ShieldData;feeNote:ShieldData;typedData:CrossChainShieldIntentTypedData;userRandom:string;feeRandom:string; }>
Defined in: src/tx/gasless-cross-chain-shield.ts:113
Assemble a gasless cross-chain shield: the two ShieldData notes (user + relayer fee, fee note carried across CCTP and minted on the hub) and the EIP-712 CrossChainShieldIntent to sign. The caller signs typedData plus a separate EIP-2612 permit (see buildPermitTypedData), then submits gaslessCrossChainShield(params, intentSig, userNote, feeNote) via the relayer (buildGaslessCrossChainShieldCalldata). Each note's random is returned too: the relayer needs feeRandom to rebuild its fee note's npk and verify it. The same result can be built in stages (save-and-resume) from buildShieldRequest, shieldDataFromRequest and buildCrossChainShieldIntentTypedData.
Parameters
input
shieldPrivateKey
Uint8Array
Returns
Promise<{ userNote: ShieldData; feeNote: ShieldData; typedData: CrossChainShieldIntentTypedData; userRandom: string; feeRandom: string; }>