Broadcast transactions
broadcastTx(rawTx, skipTokenChecks?)
Broadcast a raw transaction. The default token checks help avoid accidental burns; only disable them if you understand the risk. See broadcastTx.
The sample below is expected to fail with a validation error (it exercises burn protection).
Live editor
function DemoBroadcastTx() { return ( <Json fn={async () => { return await chronik.broadcastTx( '000000000145e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9' + 'cdcdcdcdcd0100000000000000000000000000', ); }} /> ); } render(<DemoBroadcastTx />);
Result
broadcastTxs(rawTxs, skipTokenChecks?)
Broadcast multiple raw transactions with the same semantics as broadcastTx. See broadcastTxs.
Live editor
function DemoBroadcastTxs() { return ( <Json fn={async () => { return await chronik.broadcastTxs([ '000000000145e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9' + 'cdcdcdcdcd0100000000000000000000000000', '010000000145e1f25de444e399b6d46fa66e3424c04549a85a14b12bc9a4ddc9' + 'cdcdcdcdcd0100000000000000000000000000', ]); }} /> ); } render(<DemoBroadcastTxs />);
Result