Broadcast Transactions
Setup and installation
npm install @stacks/connect @stacks/transactionsyarn add @stacks/connect @stacks/transactionspnpm add @stacks/connect @stacks/transactionsConnect to a user's wallet
import { connect, isConnected } from '@stacks/connect';
async function connectWallet() {
if (!isConnected()) {
const response = await connect();
console.log('Connected with addresses:', response);
}
}Sign and broadcast transactions
1
2
3
Handle transaction results
Last updated
Was this helpful?