src/client/index.js
/**
   * Broadcast a raw transaction to the blockchain.
   * @param {String} signedBz signed and serialized raw transaction
   * @param {Boolean} sync use synchronous mode, optional
   * @return {Object} response (success or fail)
   */
Broadcast a raw transaction to the blockchain.
@param {String} signedBz signed and serialized raw transaction
@param {Boolean} sync use synchronous mode, optional
@return {Object} response (success or fail)
Broadcast a raw transaction to the blockchain . @param { String } signedBz signed and serialized raw transaction @param { Boolean } sync use synchronous mode optional @return { Object } response ( success or fail )
async sendRawTransaction(signedBz, sync=!this._useAsyncBroadcast) {
    const opts = {
      data: signedBz,
      headers: {
        "content-type": "text/plain",
      }
    }
    return this._httpClient.request("post", `${api.broadcast}?sync=${sync}`, null, opts)
  }
async sendRawTransaction ( signedBz , sync = ! this . _useAsyncBroadcast ) { const opts = { data : signedBz , headers : { "content-type" : "text/plain" , } } return this . _httpClient . request ( "post" , ` ${ api . broadcast } ${ sync } ` , null , opts ) }
Broadcast a raw transaction to the blockchain.
Broadcast a raw transaction to the blockchain .