Introduction

ERC4337

Smart account in cosmos

Smart account Aura

Module: aura/x/smartaccount at dev ยท aura-nw/aura (github.com)

Example: https://github.com/aura-nw/smart-account-sample

Create a new smart account.

 **Step 1: Generate a new address.**

Send a query to rpc to get a new address:

LCD: aura

code_id: code id of the smart account (TBD)

salt: an arbitrary value generated by client as a source of randomness.

init_msg: instantiation message of the smart account (TBD)

public_key: json encoded publickey, contains 2 fields: type and key. For example, '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AnZfdXVALfIcNjpqgzH/4nWsSpP7l5PiCyZAuAWQRBUz"}'

The return value is a newly generated address which has not existed yet.

Step 2: Fund the newly created address or request fee grant.

To make the new address exist, we need to fund it or request a feegrant for it.