Send a signed raw transaction to the network
Source:R/raw_transactions.R
mc_send_raw_transaction.RdBroadcasts a signed raw transaction to the blockchain network. The transaction must be complete (all inputs signed) before sending.
Arguments
- conn
A connection object created by
mc_connect.- tx_hex
Character string. The signed raw transaction hex to send.
Examples
if (FALSE) { # \dontrun{
# Create, sign, and send a transaction
tx_hex <- mc_create_raw_transaction(conn, inputs, outputs)
signed <- mc_sign_raw_transaction(conn, tx_hex)
if (signed$complete) {
txid <- mc_send_raw_transaction(conn, signed$hex)
}
} # }