The SDK allows developers to connect to a specific address, enabling them to interact with the associated address.
NOTE: Connecting with polkasafe is essential. Before using any functions, use connect function to set the network, address, and injector.
import Polkasafe from 'polkasafe';
const client = new Polkasafe();
client.connect(network, address, injector);
//You need to provide your substrate address to connect the polkasafe SDK
const { data, error } = await client.connectAddress(substrateAddress);
if (data){
// Use your data
console.log(data.multisigAddresses)
}
else if(error){
console.log(error)
}