Open setbern opened 2 weeks ago
const res = (await fetchCallReadOnlyFunction({
contractAddress,
contractName: 'sbtc-registry',
functionName: 'get-current-aggregate-pubkey',
functionArgs: [],
senderAddress: STACKS_DEVNET.bootAddress, // zero address
network: 'devnet', // will use localhost:3999
})) as BufferCV;
const pub = res.value.slice(2);
For devenv contractAddress = 'SN3R84XZYA63QS28932XQF3G1J8R9PC3W76P9CSQS'
User story - Bridge should be able to get signer aggregate pubkey in order to sign the tapleaves.
This info can be fetched from the contract
The network rpc changes based on the network we're currently on