Skip to content

[Feature Request] <Let account related sdk methods take in same account types> #749

@iskysun96

Description

@iskysun96

🚀 Feature Request Description

Currently, various account-related methods take in different types. For example,
aptos.transaction.build.simple() takes in AccountAddressInput as an argument, while
aptos.transaction.simulate.simple() takes in the PublicKey type, and
aptos.transaction.sign() takes in Account type.

These three methods should ideally take in the same account type or accept multiple types.

Motivation

Is your feature request related to a problem? Please describe your use case.
It is frustrating to have to pass in different types.

Pitch

Describe the solution you would like
It would be great to be able to pass in the Account type and have the SDK method derive required values.

Describe alternatives you've considered
Or have these methods accept multiple types. for example, like this: Account | AccountAddressInput

Are you willing to open a pull request? (See CONTRIBUTING)
I can take a look at this when I get some free time, but not guaranteed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions