Client Workflow: Transacting offchain on Arkade
Users transact offchain on Arkade by submitting a transaction request to the ArkService which then undergoes several steps consisting of verification and signing procedures. The following describes the workflow and the respective functions in detail.
SubmitTxRequest with a signed Arkade transaction and unsigned checkpoint transactions. The server verifies them and responds with the fully signed Arkade transaction, its ID, and partially signed checkpoint transactions.
The client adds the missing checkpoint signatures and finalizes the process via FinalizeTx, sending the fully signed checkpoint transactions to the ArkService. Once the server verifies the final signatures, the spend is preconfirmed.
Workflow Monitoring
The actual offchain execution workflow uses the ArkService. While the IndexerService doesn’t directly handle offchain execution, it provides several supporting query functions that clients might use: VTXO MonitoringGetVirtualTxs: Retrieves virtual transactions in hex format for specified transaction IDsGetVtxos: Queries VTXO states by scripts or outpointsGetVtxoChain: Traces transaction chains for specific VTXOs
SubscribeForScripts: Subscribe to notifications for specific VTXO scriptsGetSubscription: Receive real-time notifications about subscribed scripts i
The IndexerService serves as a complementary query layer that clients can use to monitor the results of offchain transactions processed through the ArkService, but it’s not part of the core offchain execution flow itself.
