solana-developers / solana-actions

https://solana-developers.github.io/solana-actions/
Apache License 2.0
92 stars 38 forks source link

[spec] v2.3 - Optional Transaction In Action Chaining and External Link Support #25

Open thearyanag opened 3 weeks ago

thearyanag commented 3 weeks ago

TLDR

Currently, Actions can be chained together in successive series, but each action in the chain requires the user to sign a transaction thus creating a bad UX.

  1. A Post Request Type ( Optional Transaction ) has been added to avoid signing the transaction on each action.
  2. A External-Link type has been added, to direct the user to an external website.

This would enable developers to

Rationale

Blinks and actions currently require individual transactions for each action in the chain. If the user wants to move to the next action in the chain, they can't without signing a transaction. Having optional transactions would enable a better UX and open more design space for the developers.

sRFCs :

  1. https://forum.solana.com/t/srfc-32-optional-transactions-in-action-chaining/1971/18
  2. https://forum.solana.com/t/blinks-cta-external-linking/2018/10
nickfrosty commented 10 hours ago

@thearyanag also, the NextActionPostRequest should be updated to make the signature optional too since with this PR, not all actions will be able to provide a signature