#!/bin/bash if [ -z "$1" ]; then echo "Specify password as first argument" exit 1 fi if [ -z "$2" ]; then echo "Specify payload as first argument" exit 1 fi password="$1" payload="$2" curl --location --request POST 'https://disseminate-preencrypted.bitmessage.dev' \ -u api:${password} \ --header 'Content-Type: application/xml' \ --data-raw " disseminatePreEncryptedMsg $payload 1000 1000 "