Skip to content

@armada/sdk / index / buildGaslessCrossChainShield

Function: buildGaslessCrossChainShield()

buildGaslessCrossChainShield(input, shieldPrivateKey): Promise<{ userNote: ShieldData; feeNote: ShieldData; typedData: CrossChainShieldIntentTypedData; }>

Defined in: src/tx/gasless-cross-chain-shield.ts:83

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.

Parameters

input

GaslessCrossChainShieldInput

shieldPrivateKey

Uint8Array

Returns

Promise<{ userNote: ShieldData; feeNote: ShieldData; typedData: CrossChainShieldIntentTypedData; }>