Questions tagged [chainlink]

Chainlink is a decentralized oracle network that enables blockchain smart contracts to securely access off-chain data feeds.

Filter by
Sorted by
Tagged with
0 votes
2 answers
9 views

How can I get the price of NFT on Opensea using chainlink?

I have tried to use the chainlink and contract address of NFT to fetch the price but I am not sure where I am wrong pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/interfaces/...
0 votes
2 answers
78 views

How to integrate Chainlink Fast Gas oracle

I am trying to estimate the gas fee in USD for a function call. I came across the term "Chainlink Fast Gas oracle" but I couldn't find any documentation on how to use this in a smart ...
1 vote
1 answer
17 views

How does Chainlink deal with faulty/malicious nodes?

I am trying to understand how chainlink, or any oracle solution for that matter, can deal with a node not providing accurate data. How would you detect that the data is faulty to begin with, and how ...
0 votes
1 answer
376 views

ProviderError: Error: Transaction reverted: function call to a non-contract account

Documenting a solution for an error message received while working on a Chainlink contract: Error Message ProviderError: Error: Transaction reverted: function call to a non-contract account
0 votes
1 answer
208 views

chainlink data feed prices real-time update

I went through the documentation of Chainlink data feeds and saw we can get the latest price using latestRoundData() function from AggregatorV3Interface. The documentation states the price update ...
0 votes
0 answers
206 views

Chainlink randomness request never get resolved on polygon mumbai testnet

I've been learning how to generate a random number using chainlink VRFConsumerBase contract. I've followed the documentation but I've realized that my transaction stay pending when I execute them on ...
0 votes
1 answer
12 views

sendChainlinkRequest doesn't seem to return requestId

I'm trying to use Chainlink to fetch data from an API. The sample code they provide works fine but doesn't quite suit my needs so I'm trying to tweak it. I'd like to store the requestId so that I know ...
1 vote
2 answers
38 views

Error when passing the literal string " " to a function with bytes calldata as parameter

I am trying to implement the chainlink keeper to my contract. Actually I want to use the function checkUpkeep that is defined in this way: function checkUpKeep(bytes calldata /* */) public returns (...
0 votes
2 answers
32 views

How to create an Erc721 contract with fixed dollar price per token (eg. 1 nft should always cost 200$, irrespective of the ether price)

I'm creating an Erc721a contract and I want to set the price of my tokens to 200$, and for that I used chanlink's aggregator v3 interface which returns the dollar value, but how should I use this ? If ...
0 votes
2 answers
77 views

[SOLVED]PatrickCollins Solidity Course 2022 - Lesson 7: 11:20:38 -> TypeError: ethers.getContract is not a function

AssertionError: Expected transaction to be reverted with You need to spend more ETH!, but other exception was thrown: Error: Transaction reverted: function returned an unexpected amount of data I was ...
0 votes
1 answer
28 views

Convert Hex integer to number (chainlink)

I have a smart contract that returns the price of ETH using Chainlink. When i call getPrice() from geth i get a very large HEX number. How can i get the decimal number out of the hex value? ...
0 votes
1 answer
243 views

Hardhat test, await not resolving in time

I have been trying to add to write my own basic tests for a chainlink oracle response. I am adding these tests to Ampleforth's test folder. However, the tests I am running are for the moment very ...
0 votes
2 answers
274 views

How to unit-test a contract using chainlink VRF v2?

I have seen similar questions using the chainlink VRF v1 but I don't manage to make them work. I have tried to: create a subscription on rinkeby chainlink add the address of my locally deployed ...
0 votes
1 answer
29 views

How do I make sure I have enough gas for my transaction to go through. I get a value error whenever I try to deploy a contract in brownie

I am following Patrick Alphas tutorial using brownie https://youtu.be/M576WGiDBdQ . I have a fund_and_withdrawl script that has been compiled . With that, I am trying to deploy a fundme contract on a ...
0 votes
0 answers
16 views

Why is the eth/usd contract not marked as a valid ETH address ? I get a Value error constructor when I try to run deploy script on mainnet-fork

I am following Patrick Alpha's brownie tutorial using python visual studio: https://www.youtube.com/watch?v=M576WGiDBdQ (at around the 5:57 mark). I am using brownie and am trying to run my python ...
0 votes
1 answer
30 views

Whenever i write some code in Chianlink VRF fulfillRandomWords function it does not get updated

I have already set my Subscriptions for Chainlink Added consumer and subscription have sufficient Link as well No Error occurs whenever I call the requestRandomWords function The chainlink ...
0 votes
1 answer
415 views

TX failed - Bad instruction - Funds not back

I sent some $link amount but TX failed due to Bad instruction error. Tx is https://etherscan.io/tx/0xa45e443c8cf310dbe69ab725358ac2da20afde33442a55ed7df985fe6645057d Have read that failed transactions ...
0 votes
2 answers
54 views

I registered my contract in Chainlink Keepers, function checkUpkeep returns true, however performUpkeep is not executing

Like the title says, it seems all the conditions for a keeper to run performUpkeep have been met, yet it is not being called. I have verify my smart contract, make it Kepper Compatible, Fund the ...
0 votes
2 answers
938 views

How to resolve 'Build failed: function.js does not exist; Error ID: 7485c5b6'

I'm trying to deploy a Chainlink external adapter to Google Cloud Function but running into the above error. I am using this template for the external adapter. https://github.com/thodges-gh/CL-EA-...
0 votes
2 answers
29 views

insufficient gas funds error on rinkeby infura using brownie

I have sufficient ether in my testnet account but still the code is showing error. What to do next? I have attached multiple screenshots of my code and metamask rinkeby wallet.. Kindly guide me enter ...
5 votes
4 answers
511 views

How do I withdraw Ether from my Chainlink node

I'm running a chainlink node on mainnet. My chainlink node has an ether balance I would like to withdraw, but I'm not sure how to find the private key for the node wallet. I know that the tempkeys ...
0 votes
1 answer
30 views

what is the chainlink VRF randomness details for xDai/Gnosis chain?

I looked into docs of chainlink but I couldn't find the VRF details for xDai/Gnosis chain network. Could you please help me find the following details? Chainlink VRF Coordinator address: LINK token ...
0 votes
1 answer
21 views

Chainlink newbie doubts

I'm starting my studies about Chainlink this week and right now I'm trying to fit all together before I continue my exploration of Chainlink docs. May be you could help me in this task. Could you ...
0 votes
1 answer
22 views

need ideas for blockchain dapp that gives information on wait times

I want to make a blockchain dapp that lets one monitor a que (say a line up to an event or wait time in line for passports etc) or book someone to do the waiting. A gig economy sort of app-except you ...
0 votes
0 answers
18 views

Running into and issue trying to deploy first smart contract with brownie & chainlink

I am trying to use brownie to learn how to deploy smart contracts and I get to the part on Chainlinks website where I type in brownie run scripts/price_feed_scripts/deploy_price_consumer_v3.py --...
1 vote
1 answer
274 views

Troubles interacting with Chainlink node on Kovan

I've been following instructions on running a local Chainlink node on Kovan. My environment is configured to Kovan through websockets via Infura and the node is both running and successfully accepts ...
0 votes
0 answers
16 views

event from ChainLinkClient does not emit properly

The events emitted from the requestRobotUrlBytes function which is directly called by me seems to work fine but those emitted from fulfillBytes which is called by the oracle are not emitted. I'm using ...
2 votes
1 answer
744 views

How to validate the Chainlink price feed at a specific time

Suppose that in my solidity contract, I need to see the price of ETH in terms of USD at a specific time, say on January 1, 2021. I would like to use the Historical Price Data Feed from chainlink (URL ...
0 votes
0 answers
17 views

Is there a way to get history of transaction of specific smart contract using chainlink?

Here is my use case I have a smart contract that emit an event . I am new to chainlink , so my question if someone know how I can track that event history with its data using chainlink. Thanks
0 votes
3 answers
36 views

Which compiler version should I use?

// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.9.0; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@chainlink/contracts/src/v0....
0 votes
1 answer
36 views

How do I use the chainlink basic APIConsumer to retrieve a string value from json returned by api

I cannot update the string value in my contract. But if I change the output of my api to a int and use uint256 everywhere it works fine. Any ideas? type = "directrequest" schemaVersion = ...
0 votes
1 answer
16 views

Can we have communications in a web-based dapp?

I want to create a ui with web3js for some etherium smart contracts. However, I like to enquire the wallet owners whether or not they will accept the transaction Is it possible to send them some sort ...
0 votes
1 answer
34 views

How chainlink oracle works incase of state update?

I was trying to understand this pizza sample build by Patrick Collins. so my understanding is that when we send a transaction (for example store which stores a user provided number) all the nodes in ...
0 votes
1 answer
64 views

Error HH600: Compilation failed ParserError: Expected ',' but got ';'

I was doing the chainlink hackton lesson "DeFi Staking App: Code Along" link when I got this error while running yarn hardhat compile: ParserError: Expected ',' but got ';' --> contracts/...
1 vote
0 answers
20 views

Basic function returns 0x0000000000000

I'm trying to learn Soliity and started with a basic api. I pass the parameters of the function (from here I got the format of the parameters https://market.link/nodes/5fcd7b71-33aa-4679-bc70-...
0 votes
1 answer
37 views

Is there a way to import LinkToken, MockV3Aggregator, and all the other Chainlink mocks without adding the interface file?

I'm following the Solidity, Blockchain, and Smart Contract Course lessons from Free Code Camp and I noticed that Patrick sometimes seems to import mock Chainlink aggregators and mock token contracts ...
0 votes
1 answer
885 views

Make a GET Request over the Binance Smart Chain with a Chainlink Oracle

I am trying to call to an BSC Oracle to make an HTTP request according this ChainLink example. In my example I am goin to use the BSC mainnet 56 and a other JobID obviously: My steps: I created the ...
0 votes
1 answer
55 views

How to build Chainlink request so that the response will be sent to another contract?

I am currently exploring the Chainlink API Consumer smart contract that brings off-chain data to the smart contract through GET request. There is an understandable example of how to perform such task. ...
1 vote
2 answers
111 views

ImportError: cannot import name 'MockV3Aggregator' from 'brownie'

I am learning Solidity at the moment and I am facing an error when trying to use MockV3Aggregator: ImportError: cannot import name 'MockV3Aggregator' from 'brownie' Here is my bronwie-config.yaml: ...
0 votes
1 answer
25 views

If Chainlinks price feeds are free to consume, what is the point of requesting data directly from node operators?

If Chainlinks price feeds are free to consume, what is the point of requesting data directly from node operators which would cost LINK? Do platforms such as DEXs or lending platforms like AAVE pay to ...
3 votes
2 answers
414 views

How to run Chainlink Project using eth-brownie python

I had installed eth-brownie using command pip install eth-brownie after Brownie installed.I had bake existing Brownie project into a new directory. mkdir MyChainlinkProject cd MyChainlinkProject/ ...
1 vote
1 answer
144 views

How Chainlink VRF fulfillRandomWords() callback function works?

I am using Chainlink VRF2 where I receive random numbers via a callback to this function: function fulfillRandomWords( uint256, /* requestId */ uint256[] memory randomWords ) internal ...
3 votes
2 answers
3k views

Generating random number in Solidity without Chainlink

Hello I'm well aware there are plenty of threads around discussing different methods. Just curious and wanted to ask directly here because feel like the situation might be different. Essentially I'm ...
1 vote
1 answer
35 views

Best way to get notified when fallback arrived

When you request random number, the Chainlink VRF2 returns it by calling following function. function fulfillRandomWords( uint256, /* requestId */ uint256[] memory randomWords ) ...
0 votes
1 answer
132 views

Source "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol" not found: File outside of allowed directories

I'm trying to deploy an interface from Chainlink and I have in my solidity contract the import for the AggregatorV3Interface: pragma solidity 0.6.6; import "@chainlink/contracts/src/v0.6/...
0 votes
0 answers
11 views

Update last keeper when is triggered chainlink keepers

Have some troubles with chainlink keepers. I registered a keeper herehttps://keepers.chain.link/kovan/2974, but it`s not triggered and last keeper field is empty. I set the interval to checkUpkeep. ...
1 vote
1 answer
839 views

Do all Chainlink feeds return prices with 8 decimals of precision?

It looks like many Chainlink feed aggregators have 8 decimals of precision: ETH/USD, which returns 140330173736 = $1,403.30173736 BTC/USD, which returns 3696759888474 = $36,967.59888474 I found the ...
1 vote
1 answer
232 views

How to put msg.sender into a string?

In my smart contract I need to put the sender's eth address (msg.sender) into a string. I have this request code (I'm using Chainlink): request.add("get", "https://APIURL/functions/...
0 votes
1 answer
281 views

How to import deployed contract from rinkeby to browser blockchain remix

I saw a lot of tutorials on running the Rinkbey testnet injected using MetaMask on Remix to call functions such as to get conversion rates from Ether to USD using chainlink. I would like to do so ...
0 votes
0 answers
35 views

Can I get a hash of an HTTP response body through ChainLink Any API

ChainLink Any API docs tell me how to send GET requests and parse JSON results, then send a small part of the response to my contract. Is there a way to receive a hash of all the response body, or ...

1
2 3 4 5 6