Sending transactions via CODA Sandbox

If you followed the instructions and ran the CODA Sandbox docker container but you wanted to send a transaction from your host machine where you installed the CODA client from repository as instructed here https://codaprotocol.com/docs/getting-started#ubuntu-1804--debian-9 and then you proceeded to https://codaprotocol.com/docs/my-first-transaction which advises this tx send command:

coda client send-payment \
  -amount 0.5 \
  -receiver 4vsRCVNep7JaFhtySu6vZCjnArvoAhkRscTy5TQsGTsKM4tJcYVc3uNUMRxQZAwVzSvkHDGWBmvhFpmCeiPASGnByXqvKzmHt4aR5uAWAQf3kqhwDJ2ZY3Hw4Dzo6awnJkxY338GEp12LE4x \
  -fee 0.1 \
  -sender $CODA_PUBLIC_KEY

you would end up with

The send-payment command doesn’t seem to work. I get: “:x: Error: Invalid user command. Fee 0 is less than the minimum fee, 0.00001. (in ["sendPayment"])”,

because the client version installed from repository uses different token denomination than the version inside the sandbox container.

You can either attach to the container with

docker exec -it coda bash

or modify your send tx command with correct denomination (send 0.5 with a 0.1 fee)

coda client send-payment \
  -amount 500000000 \
  -receiver 4vsRCVNep7JaFhtySu6vZCjnArvoAhkRscTy5TQsGTsKM4tJcYVc3uNUMRxQZAwVzSvkHDGWBmvhFpmCeiPASGnByXqvKzmHt4aR5uAWAQf3kqhwDJ2ZY3Hw4Dzo6awnJkxY338GEp12LE4x \
  -fee 100000000 \
  -sender $CODA_PUBLIC_KEY

where $CODA_PUBLIC_KEY is actually 4vsRCVMNTrCx4NpN6kKTkFKLcFN4vXUP5RB9PqSZe1qsyDs4AW5XeNgAf16WUPRBCakaPiXcxjp6JUpGNQ6fdU977x5LntvxrSg11xrmK6ZDaGSMEGj12dkeEpyKcEpkzcKwYWZ2Yf2vpwQP

1 Like