Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated INFURA api key + added note for INFURA sign up #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Origami/Assets/Scripts/BlockNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public class BlockNumber : MonoBehaviour {
{
try
{
var web3 = new Web3("https://morden.infura.io/aEcNY6wGN4KuEpoXQRxZ");

//Note: in this sample, a special INFURA API key is used: `7238211010344719ad14a89db874158c`. If you wish to use this sample in your own project you’ll need to [sign up on INFURA](https://infura.io/register) and use your own key.
var web3 = new Web3("https://goerli.infura.io/v3/7238211010344719ad14a89db874158c");
var blockNumber = web3.Eth.Blocks.GetBlockNumber.SendRequestAsync().Result;
GetComponent<TextMesh>().text = "Last block:" + blockNumber.Value.ToString();
LastTimeAccessed = DateTime.Now;
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Hololens sample
# Hololens sample

Very simple sample to demonstrate integration with Unity3d, UWP and Hololens.

Expand All @@ -7,6 +7,9 @@ Unity3d does not support (yet) the latest version of .net for scripting, but thi
This project demonstrates how to enable this by using the [Origami sample](https://developer.microsoft.com/en-us/windows/holographic/holograms_101e) from the 101e on Holograms by Microsoft,
and adding an script in which we will get the latest blockNumber.

##Video sample
## Video sample
This video provides a quick overview of the structure, preprocessor directives and dlls necessary on the plugins folder to get this working.
https://www.youtube.com/watch?v=2MXAWHTRw7E


Note: in this sample, a special INFURA API key is used: `7238211010344719ad14a89db874158c`. If you wish to use this sample in your own project you’ll need to [sign up on INFURA](https://infura.io/register) and use your own key.