initial commit
[crowdnode.js/.git] / send-tx.sh
diff --git a/send-tx.sh b/send-tx.sh
new file mode 100644 (file)
index 0000000..6ececdf
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+set -e
+set -u
+
+my_rawtx="$(cat ./rawtx.hex)"
+curl -X POST https://insight.dash.org/insight-api-dash/tx/sendix \
+    --data-urlencode "rawtx=${my_rawtx}"