createrawtransaction - Divi 2.5.1 RPC

createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}

Create a transaction spending the given inputs and sending to the given addresses.
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and
it is not stored in the wallet or transmitted to the network.

Arguments:
1. "transactions"        (string, required) A json array of json objects
     [
       {
         "txid":"id",  (string, required) The transaction id
         "vout":n        (numeric, required) The output number
       }
       ,...
     ]
2. "outputs"             (array, required) array or json object with outputs
    [
      {
        "address": x.xxx   (numeric, required) The key is the divi address, the value is the DIVI amount
      }, ...
      {
        "hex": x.xxx       (numeric, required) The key is a hex-serialised script, the value is the DIVI amount
      }, ...
    ]

Result:
"transaction"            (string) hex string of the transaction

Examples
> divi-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "{\"address\":0.01}"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"myid\",\"vout\":0}]", "{\"address\":0.01}"] }' -H 'content-type: text/plain;' http://127.0.0.1:51473/


Maintained by DiviDomains; modified by: Bert Shuler;license of the docs is MIT (see divi repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet divi node



Control



Getinvalid