OperationBatch/OperationEmitter: split the sign and the inject actions #1129
Replies: 1 comment
-
Hi, At the moment, Taquito does not provide a way to "stop/pause" the process at a particular step in order to retrieve the prepared object. There are lower APIs that allow more flexibility but required more work from the user. For example, here is how a contract method can be called using "manual steps": https://github.com/ecadlabs/taquito/blob/master/integration-tests/call-contract-method-manual-steps.spec.ts. |
Beta Was this translation helpful? Give feedback.
-
Hello,
currently, my understanding is that it's not possible with Taquito to sign an operation and retrieve the object without sending it to the blockchain. The function OperationEmitter.signAndInject gathers the 2 functionalities as the functions RpcContractProvider.transfer or OperationBatch.send.
Is it possible to split the functions OperationEmitter.signAndInject, RpcContractProvider.transfer, OperationBatch.send in order to have for example the functions
RpcContractProvider.prepareTransferOperation : create the Operation and sign it and return the created object
RpcContractProvider.sendOperation : send the operation to the blockchain.
RpcContractProvider.transfer would remain unchanged and would call RpcContractProvider.prepareTransferOperation and RpcContractProvider.sendOperation.
Currently, to have this functionality, I have to extend RpcClient in order to empty the function injectOperation and to get the operation in the preapplyOperations. It's more a workaround than a real solution.
Bruno CHEVALIER.
Beta Was this translation helpful? Give feedback.
All reactions