stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

Broadcast raw tx #86

Closed yknl closed 4 years ago

yknl commented 4 years ago

This PR enables broadcasting of a serialized transaction string in a buffer.

const rawTx = transaction.serialize();
const url = network.getBroadcastApiUrl();
broadcastRawTransaction(rawTx, url);

Type of Change

Does this introduce a breaking change?

No

Are documentation updates required?

No

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #86 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   84.41%   84.43%   +0.01%     
==========================================
  Files          27       27              
  Lines        1720     1722       +2     
  Branches      373      351      -22     
==========================================
+ Hits         1452     1454       +2     
  Misses        266      266              
  Partials        2        2              
Impacted Files Coverage Δ
src/builders.ts 73.07% <100.00%> (+0.26%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eee0518...d3da611. Read the comment docs.