Publish Clarity contracts issue on stack 2.0 node

I tried to publish clarity contract on stack 2.0 node following described steps here as below and I got txid
cargo run --bin blockstack-cli publish 749e3af2fde44928d671f0504e4aa3bc20bd217b2ba3d7c4d2341c2562dd5ce201 500 0 kv-store ./kv-store.clar --testnet | xxd -r -p > tx1.bin
curl -X POST -H “Content-Type: application/octet-stream” --data-binary @./tx1.bin http://localhost:20443/v2/transactions
13773c0d12ee0fe4cb52d2efc2deb40ec58d1e16dfd444fa3d08cad8acd03355

but when I am trying to retrieve it using curl -X GET http://localhost:20443/v2/contracts/source/STW0XHQAMD1GM9854DSHTG4QNX7J6F8Y38N3F1C/kv-store I got No contract source data found.

Hi Mina, thanks for sharing this. If you would be able to post this in this github repo, it would be a great help. Thank you!

1 Like