I am trying to use the API and the public development server to send tokens between my two addresses created in Counterwallet with curl command:
curl -X POST http://public.coindaddy.io:4000/api/ --user rpc:1234 -H ‘Content-Type: application/json; charset=UTF-8’ -H ‘Accept: application/json, text/javascript’ --data-binary ‘{ “jsonrpc”: “2.0”, “id”: 0, “method”: “create_send”, “params”: { “source”: “1Aih5HX8R2wrygQCqYKhpToUcCRAaRxzYK”, “destination”: “1G71597Y9aTereDS9JPw3xvMkE6eymsX5d”, “asset”: “A4293925085369703000”, “quantity”: 10000000000 } }’
The response I get is:
{“jsonrpc”: “2.0”, “id”: 0, “result”: “01000000017bf24722e668f4a24cc747f5d171a7c229e58f2673f2272598ccd1f7705c1cbf020000001976a9146a9ba373118f844f96b8807e46967ce28a6eb50388acffffffff0336150000000000001976a914a5ac712e1f9a18ad9c5b7aad1b074440b291ef5988ac00000000000000001e6a1c9bbf4ca4a4831d78d373bf9b154f2453b6f62af7e7fc029e1125f9ddf4bf0000000000001976a9146a9ba373118f844f96b8807e46967ce28a6eb50388ac00000000”}
And it doesn’t seem to transfer the tokens at all. Can you tell me where did I do wrong?
Thanks!
See create_send
in API guide - you got back a raw transaction
Now you need to use the Bitcoin API to complete it.
See this below and also the Counterparty API guide.