fetchAbi
Usage
import { fetchAbi } from '@stacks/transactions';
const abi = await fetchAbi({
contractAddress: 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM',
contractName: 'my-contract',
network: 'testnet',
});
console.log(abi.functions);
console.log(abi.variables);
console.log(abi.maps);Signature
function fetchAbi(opts: {
contractAddress: string;
contractName: string;
} & NetworkClientParam): Promise<ClarityAbi>;Returns
Parameters
opts.contractAddress (required)
opts.contractName (required)
opts.network (optional)
opts.client (optional)
Last updated
Was this helpful?