Account Abstraction

Currently, the SDK for account abstraction interaction has been distributed separately as @imfact/account-abstraction. There is a possibility that it will be merged into @imfact/sdk in the future. Until then, please use the separated sdk.

Modules commonly provided by @imfact/sdk and @imfact/account-abstraction:

  • node

  • account

  • block

  • util

  • currency

  • operation

  • signer

  • contract

Modules provided by only @imfact/sdk:

  • nft

  • timestamp

  • token

  • point

  • dao

  • storage

  • payment

Modules (and more) provided by only @imfact/account-abstraction:

  • aa : provide methods to make user operation, add altersign

  • authdid : provide methods related to did-registry model for account abstraction

  • (Method) contract.updateRicipient : The contract account to be used as proxy_payer only pays the operation fee of the account registered as the recipient. Therefore, user must use this method to register as a recipient in advance.

  • (Builder) Mitum.allowedOperation : A helper that constructs an object used to define the set of operations permitted for the authentication LinkedVerificationMethod type in the AuthDID model.

If you want to transfer currency using account abstraction, the @imfact/account-abstraction SDK provides everything you need, including the currency class.

For NFT transfers, you'll need both the account abstraction classes from @imfact/account-abstraction and the NFT class from the @imfact/sdk SDK.

Installation

npm install @imfact/account-abstraction

latest version: 1.0.1

Last updated