[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance


View post   

File: 4 KB, 225x225, chainlink.jpg [View same] [iqdb] [saucenao] [google]
11349562 No.11349562 [Reply] [Original]

This is small but shows the power of Chainlink if you can imagine the possibilities. Most of it is the contract code examples provided on Chainlink's site

>What does the contract do?
It gets price data from the CoinMarketCap adapter (https://docs.chain.link/docs/coinmarketcap)) that chainlink provides, and stores the price in the contract for all to view.

>What do I need to check it out?
Switch metamask to ropsten test network and get some free ETH from a faucet:
https://faucet.ropsten.be/
https://faucet.metamask.io/
http://faucet.bitfwd.xyz/

Once you have the test ETH, head to https://myetherwallet.com and make sure to switch it to the "Ropsten network (myetherwallet)" (top right corner drop down box).
1. Click on Contracts page
2. Input contract address: 0x92c9ae02b962c7a1da9c1ec3f3c0569edb9ba725
3. Paste the ABI/JSON interface from here: https://pastebin.com/7PXyKzMA
4. Click Access

Now you can select the different functions from the drop down box. If you select "latest_price" this will show you the price of whichever currency pairing that was saved since the last request (it was ETH/USD when making this post).

I have loaded up the contract with 30 test LINK's so now to get the contract to download the price you do this:

1. Choose "requestCoinMarketCapPrice" from drop down box.
2. Put "ETH" (without quotes) into the _coin box and "USD" into the _market box
3. Click Write and finish the transaction using MetaMask
4. Once it is complete, go back to the "latest_price" and it should have the new price

You can use any currency that CMC lists (try BTC and KRW for example).

OK THANKS guys this was my first time learning Solidity and this Chainlink is really impressing me so far.

>> No.11349624

>>11349562
Link is shit and you don't even know the basics of solidity. I bet there isn't a single linker here who is capable of designing an even semi complex contract.

>> No.11349639
File: 29 KB, 400x306, 5E2B21D1-28A7-4898-85C1-E57C9C8D16A0.jpg [View same] [iqdb] [saucenao] [google]
11349639

Bump

>> No.11349658

>>11349639
Oh look, another racist nazi cultist comes out of the woodworks. There's a reason why silicon valley is run by left-wing intellectuals who can program circles around you fools while you're basically taking weeks to learn babby's first "hello world" and pretending you know anything about smartcontract design. Pathetic.

>> No.11349669

>>11349658
>(((left wing intellectuals)))

>> No.11349783

>>11349658
Go build something faggot.

>> No.11349813

>>11349562
Hi Steve. I'm glad you finally managed to set up an oracle contract all by your own :)
Don't forget to tell Thomas how to do it, too.

>> No.11349837

Oh fuck, is chainlink actually ready to develop on? Where do I get started?

>> No.11349932

Can't wait for a 'Bloomberg' Chainlink. This, with SGX, would actually destroy my whole department at a big financial institution.
Can't wait to make my former collogues obsolete with automation.

>> No.11349975

The singularity is coming.

>> No.11349984

>>11349658
>he thinks he's special because he can program

code something for me boy. your only task for being here is to entertain me.

>> No.11350054

>>11349932
I’m one of the best ChainLink researchers and Bloomberg pops up everywhere

>> No.11350238

>>11349562
bump

>> No.11350254

wow it's basically ETH, and link is just a shitcoin on ETH's platfrom to raise money. Who could've seen that one coming lads?

>> No.11350318

Bump again

>> No.11350338

>>11349562
Op why couldn't I just go and look the coin up on coinmarketcap and see the price myself, please explain.
Asking for my normie beta brainlet fren

>> No.11350442

>>11350054
where, teach me senpai

>> No.11350808

>>11350338
Because you wouldn't ask a smart contract to "just go to cmc and see the price" itself would you fren?

>> No.11350855

>>11350338
Can you trust cmc to give you the correct data? Their coins circulating data is fucked up all the time.

>> No.11350926

>>11350855
this is just an example. for serious applications you would pull price data from many different sources as well as using many oracles to make sure the data is legit.

>> No.11350943

>>11349562
Why didn't you use bravenewcoin?

Aside from that nice work man. We need people like you who discover all usecases from smartcontracts

>> No.11351271

>>11350943
just testing my dude

i notice someone tried to use the contract but had failed transactions. not sure what they were trying to do...

>> No.11352106
File: 46 KB, 532x557, b92.png [View same] [iqdb] [saucenao] [google]
11352106

>>11349658
>There's a reason why silicon valley is run by left-wing intellectuals

>> No.11352126

>>11349562
wow you have to pay to get price data? such tech. wow.

>> No.11352169

>>11349562

... but wait! There's more!

This infomercial is brought to you by shilly mcshilly wagon postpurchase rationale so with every purchase synchronized with migrational checksums you receive one imagine the possibilities of the end of every beginning is a new beginning

>> No.11352202

>>11349658
left wing intellectual is a pretty good oxymoron

>> No.11352848

>>11352202
Then why are all the professors at universities left wing? :^)

>> No.11353057

>>11352848
It doesn't matter how they got there. What matters is their plan

>> No.11353066

>>11349658
Who is curtis yarvin

>> No.11353244

>>11352848
it will come to light in time for you my fren.

>> No.11353275

>>11352848
>he thinks professors are smart
professors come in 3 categories
A) A students who are retarded outside of academics and decided to get a PHD after failing to find a job
B) diversity hires
C) old guys who decided they'd like to teach the youth after retiring from successful careers

guess which one of those 3 is actually smart, and which one is the most likely to be conservative

>> No.11353316
File: 132 KB, 1024x789, 1502677253804.jpg [View same] [iqdb] [saucenao] [google]
11353316

>>11349658
kys sweetie

>> No.11353815

>>11350054
I'm one of the best Bloomberg researchers and ChainLink pops up everywhere

>> No.11354009

>>11353275
You guys sure do have excuses for everything don’t ya

>> No.11354086

>>11349562
All you showed was the power of json parser. The ONLY thing link was supposed to solve was reputation because everything else is trivial. They didn't, they offloaded the problem to 'third party reputation providers'. Utterly worthless.

>> No.11354121

>>11354086
this

>> No.11354139
File: 238 KB, 793x892, 1535917845017.jpg [View same] [iqdb] [saucenao] [google]
11354139

>> No.11355377

Bump