The invention relates to a system and method for transferring values. A method includes issuing, by a user device, a deposit transaction including a deposit value and a condition to a blockchain; and updating, by the user device, the status according to the transaction amount. The method further includes sending, by the user device, a state update of the state to a server computer; and in response to sending the status update, receiving, by the user device from the server computer, a payment completion message including a tuple. The method further includes verifying, by the user device, the condition; and in response to the verification, processing, by the user device, a server deposit transaction on the blockchain.