Available API Calls
With CURL examples

API ADDRESS: http://bitwrangle.herokuapp.com/



Create New Coin

curl --data "public_address=&initial_coins=&name=&recipient=&private_key=&ticker=&description=&" http://bitwrangle.herokuapp.com/colors/signed

Response
tx_hash: '207726f41d1ddc38bd1cf53cc54114bca7aa03852a08f554d17c90251867c1b4'
OR
'None' if failed

Issue Additional Coins

curl --data "private_key=&public_address=&initial_coins=&recipients=&name=&"

Response
tx_hash: '207726f41d1ddc38bd1cf53cc54114bca7aa03852a08f554d17c90251867c1b4'
OR
'None' if failed

Check Color Balance of Public Address

curl http://bitwrangle.herokuapp.com/addresses//

Response
100000 (amount of specified colored coin at address)

Find All Holders of Coin Color

curl http://bitwrangle.herokuapp.com/colors/"color_address"

Response
[{'color_amount': 337, 'address': '1C3nG7RpEGq5VzVWdygM4RY35qJji8fx2c'}, {'color_amount': 12500, 'address': '16NZhXGySMbCgpZ3WEMqkXGaxmmNnX51W5'}, {'color_amount': 500, 'address': '1Myvq1HeQUY9kawMy2EzGMm9KU1nnF8hkB'}]

Transfer Colored Coins


POST '/transactions/colored' curl --data "from_address=&private_key=&coin_amount=&color_address=&destination_address=" http://bitwrangle.herokuapp.com/colors/transfer

Response
1aa3c755fb0fc34e24c6e1595eacedb983112ef383220cefae625fc74ac6158f

Write OP RETURN transaction



Push Raw Hex Transaction

curl --data "transaction_hex=0100000001c5a1e23719b48058e8be03eb87bfde0f19d2f471bf95cb5a0dff26e47f8ad64b040000008a4730440220262910bccc3dbf6d0580ad2655dd1ba2b0a4b02c4e0e75f870b0e5add94cc189022030f0eeb0e7f1de89978959f23a3bf8b7037e3a067a6bc1ae58776a34d2cf9b60014104c262fe05d3aaf5c05fc576b88be8856865bae64fc80d2f63653d4f9a4f2f8fa4952b0051928898fde272312e81819f7fcdb664292854c910e9465b4d9a52a235ffffffff025fea0000000000001976a914b3143ace345d79195842222b40c35028eda508df88acb8d00400000000001976a914423b040f0b9741a6fef3f9a163ee786495b3291788ac00000000" http://bitwrangle.herokuapp.com/transactions

Response
tx_hash: '4998592b6dc04993eda3977bb04b049f3a67ffacfc35a239bbc281ccb7434259' OR
'None' if failed

Get Block Count

curl 'http://bitwrangle.herokuapp.com/blocks/count'

Inspect Block for Colored Coin Behavior

curl 'http://bitwrangle.herokuapp.com/oa/blocks/"block_height"'

Generate Random Public/Private Key Pair

curl http://bitwrangle.herokuapp.com/addresses/generate

Response
{'private_key': '5J6qXE7yKCKgfPfrb7LfAjB3e7jZx7zwdYeFPV7hT6Ncrkwo6yY', 'public_address': '1PxbnszdafZ6CYrHHqJYXw8pCsEW5dVPDU'}