Skip to contents

Broadcasts a signed raw transaction to the blockchain network. The transaction must be complete (all inputs signed) before sending.

Usage

mc_send_raw_transaction(conn, tx_hex)

Arguments

conn

A connection object created by mc_connect.

tx_hex

Character string. The signed raw transaction hex to send.

Value

A character string containing the transaction ID (txid).

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)
}
} # }