Constellation Network
IntroductionFundamentalsFor DevelopersNode Validators
  • Index
  • Concepts
    • Architecture
  • IntegrationNet
  • API Reference
    • DAG4.js
      • Intro to dag4.js
      • Interacting with Wallets
      • Connecting to the Network
      • Sending Transactions
      • Message Signing
      • Metagraph Tokens
      • Dag4.js Example Apps
    • Hypergraph APIs
  • Metagraph APIs
  • Block Explorer APIs
  • Integration Guides
    • Transaction Signing
    • Delegated Staking
Powered by GitBook

Main

  • Website
  • Get DAG
  • Explore Projects
  • Partners

Socials

  • Telegram
  • Discord
  • X (Twitter)

Tools

  • Wallet
  • DAG Explorer
  • Coingecko

© 2025 CONSTELLATION NETWORK

On this page

Was this helpful?

Export as PDF
  1. API Reference
  2. DAG4.js

Connecting to the Network

PreviousInteracting with WalletsNextSending Transactions

Last updated 1 month ago

Was this helpful?

Dag4.js provides reasonable configuration values by default for accessing Constellation Network versions 1.0 and 2.0.

Minimal network configuration

dag4.account.connect({
  networkVersion: '2.0',
  testnet: true
});

Custom network configuration

You can provide custom values for each the three network API endpoints to set up a custom connection.

dag4.account.connect({
  networkVersion: '2.0',
  beUrl: 'https://be-mainnet.constellationnetwork.io/',
  l0Url: 'http://13.52.246.74:9000',
  l1Url: 'http://13.52.246.74:9010'
});

Default Endpoints

The following endpoints are used by default by Dag4.

IntegrationNet

dag4.account.connect({
  id: 'integration2',
  networkVersion: '2.0',
  beUrl: 'https://be-integrationnet.constellationnetwork.io',
  l0Url: 'https://l0-lb-integrationnet.constellationnetwork.io',
  l1Url: 'https://l1-lb-integrationnet.constellationnetwork.io'
}, false);
dag4.account.connect({
  networkVersion: '2.0',
  testnet: false
});

TestNet usage is not recommended as it is expected to be unstable. Use IntegrationNet as the preferred testnet.

dag4.account.connect({
  networkVersion: '2.0',
  testnet: true
});

Block Explorer API:

L0 API:

L1 API:

MainNet

Block Explorer API:

L0 API:

L1 API:

TestNet

Block Explorer API:

L0 API:

L1 API:

​
​
​
​
https://be-integrationnet.constellationnetwork.io
https://l0-lb-integrationnet.constellationnetwork.io
https://l1-lb-integrationnet.constellationnetwork.io
​
https://be-mainnet.constellationnetwork.io
https://l0-lb-mainnet.constellationnetwork.io
https://l1-lb-mainnet.constellationnetwork.io
​
https://be-testnet.constellationnetwork.io
https://l0-lb-testnet.constellationnetwork.io
https://l1-lb-testnet.constellationnetwork.io