Session keys with outside execution
1. Prepare the contract call
// example for creating the calldata
const erc20Contract = new Contract(
Erc20Abi as Abi,
ETHTokenAddress,
sessionAccount
)
const calldata = erc20Contract.populate("transfer", {
recipient: address,
amount: parseInputAmountToUint256(amount)
})
2. Prepare Execution from outside
a. Get the raw Execute from outside call
2.b. Get the signed Execute from outside call
Last updated
Was this helpful?