All right, so now that we're ready and we're prepped, it's time to turn our locally developed and hosted, 1
dbank and put it onto the live Internet computer network where you'll see it gets a URL that ends 2
with ic0.app. 3
To get started, head over to faucet.dfinity.org and then click on the button to authorize 4
the faucet using your GitHub account. 5
So you'll need to log in on GitHub. Now in order to prevent people from abusing the cycles 6
faucet, because after all, you sort of getting free resources, they've added a limitation where the 7
GitHub account has to be aged. 8
So it has to have been created over 90 days ago. 9
That means you can't just create one now and be able to get more cycles. 10
And this is why I'm saying when we're doing the deploy, we have to be ultra-careful so we don't waste 11
our cycles. 12
In addition, the GitHub account has to be active over the last 30 days. And if you matched all of 13
that criteria and you log in, then you should be able to proceed to step two, where they want your principal 14
ID. 15
Now the principal is basically a generic identifier. 16
It will refer to an entity that can be authenticated by the Internet computer blockchain, so that 17
can be a user like yourself or simply a canister. 18
So the first time that you actually use the definitive canister SDK, it will automatically create a 19
default developer identity for you. 20
And this includes the principal. 21
So this principal ID or the principal identifier is basically associated with your developer identity. 22
It's used to identify you and allows you to control canisters or control applications that you build. 23
And in our case, it will be used to determine where these free cycles are going to go. 24
So in order to find the principal ID, let's go ahead and copy this command and paste it into a new 25
terminal. 26
Once you've gotten that ID back, then copy it entirely and paste it into the box there. 27
Next, we're going to generate a new cycles wallet. 28
So click on that and click Continue. 29
And then finally, it's going to take a few seconds to set up everything behind the scenes. 30
And then once that's done, it'll show you your balance in terms of terra cycles. 31
So this is 15 terra cycles that I've got, which currently is equivalent to about $20. 32
Now, remember that you can't actually convert this back to real money 33
unfortunately. It's not like a token, like the ICP token where it's freely exchanged and traded. 34
This can only be used to power our canisters on the internet computer blockchain. 35
So now that we've got our free cycles, the final thing to do is to copy this command and to set the ID 36
of our default wallet. 37
And in order for this to work, we first have to make sure that we cd over to our dbank project. 38
And then once you cded over, go ahead and simply paste that command into the terminal and then it should 39
do a bunch of things until it tells you that your wallet has been set successfully. 40
And now that you're all set, it's time to check our balance. 41
And to do this, we need to copy the ID that we got previously when we connected our wallet and then 42
we need to add .raw.ic0.app. 43
And once you head over there, it's going to ask you to authorize yourself. 44
And in order to do this, we have to create what's called an Internet identity anchor. 45
Basically, this is similar to a login with Google, a log in with Facebook, but in this case, we're 46
logging in with our Internet identity. 47
So in order to create this, let's first provide a name for our device, and then it's going to ask 48
us, how do you want to verify your identity? 49
If you have a USB security key, then choose that. 50
But otherwise just use this device. 51
And this way you will verify with the password that you used to log on. And once you confirm, it's going 52
to give you an internal identity 53
anchor, so make sure you write this down and keep a hold of this because you won't be able to get hold 54
of it if you lose it and you won't be able to authenticate yourself with your wallet with all your cycles. 55
So that could be a big problem. 56
So write it down now on a piece of paper, back it up, save it somewhere where you won't forget and 57
then you can click Continue. 58
It's a good idea to set up a recovery mechanism now in case you forget your anchor. So you can choose 59
the seed phrase if you don't have a security key. 60
And it's going to give you a whole bunch of words which you're going to need to write down again, maybe 61
offline, so that nobody can get access to it through the Internet. 62
Now, finally, once you're done with that, click the continue button and then we can register the 63
device. 64
So copy the code here and then type it into the terminal. 65
And once that's done, if you hit refresh, you should be able to see your cycles represented on this 66
website. 67
You can see at the moment I've got 14 terra cycles and it shows who are the principals who control 68
this wallet. And later on, 69
once we start deploying, you'll see the canisters that's created from this wallet as well. 70
That's all it takes to tap into the faucet and get some of these free cycles. 71
But now that we have our cycles, in the next lesson, we're going to use them to deploy our dbank application 72
to the live Internet computer blockchain. 73
So for all of that and more, I'll see you in the next lesson.