All API methods should return SubmittableExtrinsic
gregdhill opened this issue · 0 comments
gregdhill commented
Is your feature request related to a problem? Please describe.
It is difficult to use the current API to compose calls (e.g. in a batch) since we usually return Promise<void>
.
Describe the solution you'd like
The existing methods should not submit the transaction by default but rather return the SubmittableExtrinsic
and possibly the success event type.
Describe alternatives you've considered
Currently we have a bunch of unused "builder" methods which are annoying to maintain.
Additional context
The new return type will also allow the consumer to directly monitor the progress of the transaction. This is useful in the frontend for displaying toast popups.