STACKS_DEVNET
Usage
import { STACKS_DEVNET } from '@stacks/network';
console.log(STACKS_DEVNET.client.baseUrl);
// 'http://localhost:3999'import { makeContractCall, Cl } from '@stacks/transactions';
const tx = await makeContractCall({
contractAddress: 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM',
contractName: 'my-contract',
functionName: 'my-function',
functionArgs: [Cl.uint(1)],
senderKey: '753b7cc01a1a2e86221266a154af739463fce51219d97e4f856cd7200c3bd2a601',
network: 'devnet', // equivalent to passing STACKS_DEVNET
});Notes
Definition
Last updated
Was this helpful?