Network
type NetworkConfig = {
rpcUrl: string;
networkPassphrase: string;
type: NetworkType;
archiveRpcUrl?: string;
horizonUrl?: string;
friendbotUrl?: string;
allowHttp?: boolean;
};Built-in Configurations
TestNet
import { NetworkConfig } from "@colibri/core";
const network = NetworkConfig.TestNet();
console.log(network.rpcUrl); // "https://soroban-testnet.stellar.org:443"
console.log(network.horizonUrl); // "https://horizon-testnet.stellar.org"
console.log(network.friendbotUrl); // "https://friendbot.stellar.org"
console.log(network.networkPassphrase); // "Test SDF Network ; September 2015"MainNet
FutureNet
Custom Configuration
Configuration Options
Option
Type
Description
Network Providers
Archive RPC
Checking Archive Availability
Network Types
Checking Network Type
Network Passphrases
Example of Usage with Pipelines
Next Steps
Last updated