Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function example() {
const provider = 'https://alphanet-node.tzscan.io';
Tezos.setProvider({ rpc: provider });
try {
const op = await Tezos.tz.activate("tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu", "161d907951bf5594bedb1d70bb03c938d63c22be")
console.log('Awaiting confirmation...');
await op.confirmation();
console.log(op.hash, op.includedInBlock);
} catch (ex) {
console.log(ex)
}
}