stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

Add sponsored transaction generation #7

Closed yknl closed 4 years ago

yknl commented 4 years ago

Currently the library can only construct transactions signed and paid for by the originating key. Sponsored transactions allow a separate funder to pay for the transaction.

This means that the library should be able to generate transactions that are signed but does not specify the fee rate. The sponsor should then be able to deserialize the transactions, set the fee rate and sign the transaction.

stackatron commented 4 years ago

@yknl can you please add some details, test cases, or todos here please.

@hstove thought you might want to chime in on how authenticator may consume this.

hstove commented 4 years ago

Just a test or example in the README would be enough to let me figure out how to use it

diwakergupta commented 4 years ago

@jeffdomke @yknl confirming that this is slotted for SP8? Shall I consider this a non-blocker for Neon then?

yknl commented 4 years ago

I don't think there are any use cases for Neon that would require this so yes.