-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support for transaction chaining #499
Comments
Any work on this? It would be really helpful to be able to build a TX and provide an additional utxo set to resolve the input's output for arbitrary utxos. |
Right now the txchaining capability is supported through offline evaluator, you can try it. No timeline for implementing into service providers, if you want it now, feel free to create a PR const evaluator = new OfflineEvaluator(
provider,
network.toLocaleLowerCase() as "mainnet" | "preprod"
);
const txBuilderConfig: MeshTxBuilderOptions = {
fetcher: provider,
serializer: new CSLSerializer(),
evaluator,
verbose: true,
};
const txBuilder = new MeshTxBuilder(txBuilderConfig); |
I'd like to brainstorm some ideas. I have a project where this would be useful. My initial thought was having something like
Then you can do something like
In that case, the service provider would know not to query the chain for that input but to use the resolved input for the additional utxos parameter field inside the I will check out the offline evaluator, though. |
This endpoint has been already implemented at |
Describe the feature you'd like
Currently transaction chaining is supported only by
OfflineEvaluator
incore-csl
. When we want to have full support, it has to be integrated with other evaluator instances also.Is your feature request related to a problem? Please describe.
Also, the tx chaining capability is not documented currently. There are 2 relevant apis in particular to supply information which is not available in the global blockchain:
https://github.com/MeshJS/mesh/blob/main/packages/mesh-transaction/src/mesh-tx-builder/tx-builder-core.ts#L1503-L1549
These 2 apis can allow users to provider previous unrecorded tx and particular utxos for evaluation.
Describe the solution you'd like
Improve current
evaluateTx
method for allIEvaluator
to consideradditionalTxs
andadditionalUtxos
Additional context
No response
Would you be willing to implement it?
The text was updated successfully, but these errors were encountered: