   
   (add-channel-end cli "mychannel" (map->OrdererOpts {:name "orderer0" :grpc-url "grpc://localhost:7050"}))
   (add-channel-end cli "mychannel" (map->PeerOpts {:name "peer0" :grpc-url "grpc://localhost:7051"}))
-
+  (defonce proresp (propose-transaction cli
+                                        "mychannel"
+                                        (make-ChaincodeOpts {:name "fabcar" :version "1.0" :path "resources/"})
+                                        (map->TransactionOpts {:fcn "createCar"
+                                                               ;; FIXME: marshall/unmarshall
+                                                               :args (java.util.ArrayList. ["CAR10" "Chevy" "Volt" "Red" "Nick"])
+                                                               :proposal-wait-time 10000})))
   )
 #_
 (comment

                            (chaincode/set-path "resources/")
                            (chaincode/build)))
  (request/set-chaincode-id req chaincode-id)
  (request/set-fcn req "some_function")
  ;; timeout
  (request/set-proposal-wait-time req 10000)
  ;; FIXME: marshall
  (request/set-args req ["some args"])

  (defonce resp (channel/send-transaction-proposal chan req))
  (defonce future1 (channel/send-transaction chan resp (client/get-user-context cli)))

#_
(comment
  (defonce cli
   (get-or-make-client "Org1MSP"
                "PeerAdmin"
                (-> (slurp "resources/creds/cd96d5260ad4757551ed4a5a991e62130f8008a0bf996e4e4b84cd097a747fec-priv")
                    (keys/str->private-key))
