Broadcast ARC

Complete examples for broadcasting transactions using ARC (Advanced Repository for Chains) - the modern transaction processing API for BSV.

Overview

ARC is the next-generation transaction broadcast and processing system for BSV, replacing the legacy Merchant API. This guide demonstrates how to use ARC for broadcasting transactions, monitoring status, handling retries, and optimizing broadcast strategies with proper error handling.

Related SDK Components:

Two Broadcasting Approaches

The BSV SDK provides two distinct ways to broadcast transactions via ARC:

1. Simple Transaction Broadcasting (tx.broadcast())

Use for: Single, independent transactions

// Simple approach - uses default or provided broadcaster
const response = await tx.broadcast();
// Or with specific ARC instance:
const arc = new ARC('https://api.taal.com/arc', { apiKey: 'xxx' });
const response = await tx.broadcast(arc);

2. BEEF Bundle Broadcasting (arc.broadcastBEEF())

Use for: Transaction chains with dependencies

This guide covers both approaches with practical examples.

Basic ARC Broadcasting

ARC Status Monitoring

Advanced ARC Features with Retry Logic

BEEF Format Broadcasting via ARC

Important: This section covers broadcasting transaction chains. For single transactions, use the simple tx.broadcast() approach shown in the previous sections.

See Also

SDK Components:

Learning Paths:

Last updated