Challenge: Real-Time Bitcoin Transactions
Test your understanding of working with WebSocket.
We'll cover the following...
We'll cover the following...
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:
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.
- Locate
# TODO-1: Add package
in thepubspec.yaml
file and add the