clientFromNetwork
Usage
import { clientFromNetwork, STACKS_TESTNET } from '@stacks/network';
const client = clientFromNetwork(STACKS_TESTNET);
console.log(client.baseUrl); // 'https://api.testnet.hiro.so'
console.log(typeof client.fetch); // 'function' — always definedNotes
Signature
function clientFromNetwork(network: StacksNetwork): Required<ClientOpts>;Returns
Parameters
network (required)
Last updated
Was this helpful?