Creates an instance of the OrionAI.js SDK.
const orion = new Halo(window.ethereum); // web browser
const orion = new Halo('http://127.0.0.1:8545'); // HTTP provider
const orion = new Halo(); // Uses Ethers.js fallback mainnet (for testing only)
const orion = new Halo('goerli'); // Uses Ethers.js fallback (for testing only)
// Init with private key (server side)
const orion = new Orion('https://mainnet.infura.io/v3/_your_project_id_', {
privateKey: '0x_your_private_key_', // preferably with environment variable
});
// Init with HD mnemonic (server side)
const halo = new Halo('mainnet' {
mnemonic: 'clutch captain shoe...', // preferably with environment variable
});