ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
ERC-4337 | How to make a smart contract account and send your first userOperations
ฝัง
- เผยแพร่เมื่อ 4 เม.ย. 2023
- In this video, Blocknative PM and 4337 Researcher Blair Marshall will walk you through how to:
-create a smart contract account
-make your first ERC-4337 transaction by sending userOperations to the Blocknative bundler
-monitor your transaction in real-time
-conduct a Uniswap approval transaction and token swap in the same userOperation
Important Links:
- Blocknative Bundler Docs: docs.blocknati...
- Blocknative Mempool Explorer (Monitor EntryPoint Contract): explorer.block...
- Blocknative UserOps Explorer: 4337.blocknati...
- StackUp Quickstart Docs: docs.stackup.s...
Finally good video quality, thank you!
#0xgas #AccountAbstraction the 0xGasless SDK marks a significant step forward in making blockchain technology more accessible and user-friendly
Your sounds really let me think of soul goodman!
Finally, ethereum's ERC-4337 is accesible
In the scenario where we have created a smart contract account requiring a payment of a certain amount of GAS, the responsibility of providing the GAS falls upon the paymaster???
in the uniswap example, the approve is not necessary. you are swapping ETH as input
🙌
How passing private key to user op is safe?
Hey great video! But I'd like to know how can I change the Smart Contract Account contract? I want to change the validateUserOp method. Don't wanna use the SimpleAccount contract.
Diagram of what is happening and why plz
How do you deploy a smart contract with userOps? when I place a small contract bytecode in the data param for simpleAccount.execute it bombs out.
109
I am getting error {"error":{"code":-32602,"data":"preVerificationGas: below expected gas of 48152","message":"preVerificationGas: below expected gas of 48152"},"id":43,"jsonrpc":"2.0"}
hi, do you solve this error ? Can you help me ?
@@angphamminh6247 this error referent invalid method parameters, may be build wront a call data. :)
am getting error- "code\":-32602,\"data\":\"preVerificationGas: below expected gas of 48188\",\"message\":\"preVerificationGas: below expected gas of 48188\"
this error referent invalid method parameters, may be build wront a call data. :)
I am getting error- "code\":-32602,\"data\":\"preVerificationGas: below expected gas of 48188\",\"message\":\"preVerificationGas: below expected gas of 48188\"
Hey there - I had this problem once and I believe its a slight issue with the @account-abstraction sdk library. One hacky solution is to go to node_modules/@account-abstraction/sdk/dist/calPreVerificationGas.js and in the function calcVerficationGas add in an extra 10000 to the ret value. Something like:
Math.round(callDataCost +
ov.fixed / ov.bundleSize +
ov.perUserOp +
ov.perUserOpWord * lengthInWord + 10000);
I am not sure exactly what's wrong with this function, but the above worked for me to get it working. Let me know if that works for you!
hi, do you solve this error ? Can you help me ?