...

/

Challenge: Real-Time Bitcoin Transactions

Challenge: Real-Time Bitcoin Transactions

Test your understanding of working with WebSocket.

Goal

In this challenge, you’ll listen to Bitcoin transactions from the WebSocket API server and practice what you’ve learned previously.

Specs

When you run your app and navigate to “Realtime Transactions,” a list of transactions streams in, as shown below:

Press + to interact
Bitcoin transaction challenge specs
Bitcoin transaction challenge specs

Starter code

Before you begin the challenge, look at the starter code below and run it. Once done, you can dive into the challenges below.

import 'package:flutter/material.dart';
import 'presentation/my_app.dart';
void main() async{
  runApp(const MyApp());
}


Bitcoin transaction challenge starter code

Challenges

Challenge 1: Connect to a WebSocket server

In this challenge, you will make a successful connection to the WebSocket API server.

  1. Locate # TODO-1: Add package in the pubspec.yaml file and add the
...