You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the TS SDK, we are introducing an inverted transaction flow. Currently, the dApp hands off a transaction request to the connector, the connector submits it and passes back the transaction ID. If the dApp remains responsible for submission, we reduce the number of round trips from submission to summary by 2 requests.
Introduces the following properties to the FuelConnector interface:
usePrepareForSend - a boolean flag to signal to Account.sendTransaction that of the submission flow
prepareForSend - the implementation to prepare a transaction for submission via the connector (eg. for EVM/SVM this would be the addition of the predicate account)
Note
This is not a breaking change, the original flow is still supported but we should gradually move to this approach due to it's performance benefits.
As proof of concept, I implemented prepareForSend in the EVM/SVM/burner wallet connectors:
I'd be happy to do this."Hi, I'm a TypeScript and Web3 developer with experience in NestJS and blockchain integrations. I understand the inverted transaction flow and its benefits, and I’d love to contribute. My approach includes implementing prepareForSend in the Fuel Wallet and optimizing submission efficiency.. Looking forward to collaborating!"
Within the TS SDK, we are introducing an inverted transaction flow. Currently, the dApp hands off a transaction request to the connector, the connector submits it and passes back the transaction ID. If the dApp remains responsible for submission, we reduce the number of round trips from submission to summary by 2 requests.
The following SDK PR:
Introduces the following properties to the
FuelConnector
interface:usePrepareForSend
- a boolean flag to signal toAccount.sendTransaction
that of the submission flowprepareForSend
- the implementation to prepare a transaction for submission via the connector (eg. for EVM/SVM this would be the addition of the predicate account)Note
This is not a breaking change, the original flow is still supported but we should gradually move to this approach due to it's performance benefits.
As proof of concept, I implemented
prepareForSend
in the EVM/SVM/burner wallet connectors:prepareForSend
for EVM and SVM connector #477For the completion of this issue:
The text was updated successfully, but these errors were encountered: