Prototype of wallet API