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
0answers
15 views

Chainlink Keepers. Working once then not

Hi im having trouble trying to get my auctions automated. Ive had the keeper succesfully resolve a single auction but then it's like im losing my place somehow. I can only get a single auction to ...
0
votes
1answer
17 views

Sample implementation of keepers in the sample below. The functions are explained in the code with comments

function checkUpkeep( bytes calldata checkData ) external view override returns ( bool upkeepNeeded, bytes memory performData ) { if (getPrice() == roundMoonPrice[coinRound]) { ...
1
vote
0answers
25 views

Specifying `path` for multi-variable responses with Chainlink

I am trying to understand the documentation for making multi-variable requests with Chainlink (docs), and something that is unclear is how to specify how the multiple values are queried. With the ...
0
votes
1answer
48 views

remote server error: 500 Response body: {"message":"Internal Server Error"}

// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol"; /** * Request testnet LINK and ETH here: https://faucets.chain.link/ * ...
0
votes
1answer
38 views

How do I use a Chainlink api call to retrieve a string value from json returned by api

I am trying to use a chainlink request to make an api call, then update the volume variable with the result of the api call. The api call should retrieve a string. After deploying and funding the ...
0
votes
2answers
26 views

undeclared identifier Chainlink.Request memory req = buildChainlinkRequest(specId, address(this), this.fulfill.selector);

undeclared identifier copied contract from link docs https://docs.chain.link/docs/jobs/types/direct-request/ import "https://github.com/smartcontractkit/chainlink/contracts/src/v0.6/...
1
vote
0answers
14 views

how to enable local connection of chainlink?

I have a custom API running on http://127.0.0.1:8080 and I have my own chainlink node running on http://127.0.0.1:6688. I get the error saying "Connections to local/private and multicast networks ...
0
votes
0answers
12 views

Errors in the .env Chainlink Brownie tutorial [duplicate]

I'm getting the following error while trying to connect with a Rinkeby Infura project ID: brownie run scripts/price_feed_scripts/01_deploy_price_consumer_v3.py --network rinkeby Brownie v1.17.1 - ...
1
vote
1answer
19 views

How to do delayed Execution on the matic network?

I'm trying to write a smart contract to farm tokens. I would like to make an auto-compounding solution similar to beefy.finance or polycats. My contract can deposit funds or liquidity into LP mining, ...
1
vote
1answer
19 views

What's the best way to perform a cross-currency price lookup on chainlink?

I'm trying to do a lookup for an unsupported price feed on polygon network: eg. BTC/MATIC on chainlink's data feed (https://docs.chain.link/docs/matic-addresses/). What's the best way to do this? It ...
1
vote
0answers
40 views

How can I make multiple keeper feeds?

Since we have more than one keeper model, we have keeper to feed these keepers. This keeper feeds himself at the same time. When determining the keeper balance, we set it as "x" multiple the ...
1
vote
1answer
21 views

Error: Could not find local build/contracts when looking for local artifacts, funding chainlink VRF

Okay, I've been trying to learn the Hardhat environment, deploying and interacting with contracts I'm stuck and it's driving me nuts. https://docs.chain.link/docs/intermediates-tutorial/ I'm ...
1
vote
1answer
18 views

Run Binance Smart Chain Price Feeds from Chainlink on Testnet

I found the following link to get a price feed on Binance Smart Chain: https://docs.binance.org/smart-chain/developer/link.html However, I want to run it on a testnet first. How could I do that?
1
vote
2answers
48 views

Brownie throws error - ValueError(f"'{value}' is not a valid ETH address") from None

I'm using this program to make an NFT https://github.com/PatrickAlphaC/nft-mix and I get this error when I run create_collectable.py File "brownie/_cli/run.py", line 50, in main ...
0
votes
1answer
79 views

ERROR: Contract should be marked as abstract [duplicate]

Hi I am following a tutorial on Chainlink NFTs but I get this error below which reads: Contract should be marked as abstract. Now I see this same question was asked before however in that person's ...
2
votes
2answers
72 views

Ensuring Only Keepers Can Call My Contract's "performUpkeep" Function

I have a keeper performUpKeep function that is mission critical that only a keeper can call and not some random third party to activate the contract sooner. It appears that the Chainlink keepers ...
1
vote
0answers
19 views

Chainlink job returning previous pipelines to external initiator after bridge call

I have a job in my chainlink node that is described as follows: type = "webhook" schemaVersion = 1 name = "essevai2" externalJobID = "xxxxxxx" observationSource = "&...
0
votes
0answers
31 views

chainlink keepers

How do you let the perform upkeep function to know which instance of p it should perform upkeep for? function checkUpkeep(bytes calldata /* checkData */) external override returns (bool upkeepNeeded, ...
4
votes
1answer
132 views

How often are Chainlink price feeds updated?

I browsed through the Chainlink docs but I couldn't find an answer for how often prices are updated. My understanding is that they have a rule that if the markets become super volatile, they ...
0
votes
1answer
13 views

Chainlink: How to get the jobspec for a specific feed?

I am trying to determine the off-chain source of price data for a feed. From reading the docs, this is declared in the job spec. So, given a specific price feed, https://market.link/feeds/9765bb8d-...
1
vote
1answer
45 views

VSCode and parser not recognizing import statements

When I try to use brownie to compile my solidity code on VS Code using brownie compile, it throws an error, saying my contract should be labeled as an abstract. However, the parser is not recognizing ...
0
votes
1answer
68 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 ...
4
votes
1answer
270 views

What is the purpose of using a true random number for an NFT?

I don't understand what the purpose of using Chainlink VRF for my NFT's generation is. Why don't I just launch and pick the NFT traits myself?
0
votes
1answer
29 views

How can I measure the safeness of a price feed in Chainlink?

I want to know how to measure the safeness of a special price feed. As far as I understand, this price feed is not the official price feed of Chainlink in BSC (based on documents). Also, its nodes are ...
1
vote
2answers
54 views

Chainlink "TypeError: Immutable variables cannot be read during contract creation time..."

I have tried using @chainlink/contracts many ways (truffle, hardhat, remix). In all cases I run into an error that seems to be some bug deep inside on the chainlink library: > Compilation warnings ...
1
vote
1answer
42 views

Using ChainlinkVRF vs ChainlinkClient createRequestTo to get a random number

I am trying to get a random number from a chainlink oracle and don't know the difference between two ways of doing it. The chainlink documentation says to use a RandomNumberConsumer is VRFConsumerBase ...
1
vote
0answers
43 views

Chainlink node setup - "Failed to run migration 0003_eth_logs_table"

When I try running cd ~/.chainlink-rinkeby && docker run -p 6688:6688 -v ~/.chainlink-rinkeby:/chainlink -it --env-file=.env smartcontract/chainlink:0.10.14 local n I receive the following ...
0
votes
1answer
35 views

Chainlink custom token(pair) price

How to get price of my own token with chainlink? They provides proxy for pairs already in chainlink. But how can we get price of our own token? With external API or chainlink node? Proxy: https://docs....
0
votes
0answers
11 views

DONs pricing model query

How are the outputs from DONs priced? What should an industry client expect to pay in LINK for say, the price of Etherium in USD, validated by 7 nodes every minute for a month?
1
vote
1answer
65 views

Chainlink job not working with external bridge, it is giving an error "Error: UnprocessableEntityError"

I have created an external adapter and hosted it on AWS server as it required to get data from third part URL with authentication headers. I have also hosted a chainlink node and added this AWS ...
0
votes
0answers
177 views

Couldn’t see my test ETH on my Metamask wallet balance

I got funds to my Metamask wallet from Rinkeby Authenticated Faucet to my testnet account and the transaction was sent successfully, status is Success (can see on https://rinkeby.etherscan.io/). Also, ...
1
vote
1answer
176 views

Get random number without replacement in Solidity

I am trying to sample a random number without replacement until the pool of possible numbers runs out, using Solidity. In pseudo-code, it should be something like this: 1. Initial pool of numbers: (1, ...
2
votes
1answer
23 views

can I use the chainlink oracle somehow at v.0.8.0?

there are some functions on solidity i want to use for a project but I also need to use the chain-link oracle to get the latest price on a coin, and the chain-link oracle will only let me use it at 0....
0
votes
2answers
48 views

chainlink request to cancelChainlinkRequest

I have been on this to test how requests will be canceled. i go this error the has of the transaction here: https://testnet.bscscan.com/tx/...
1
vote
1answer
68 views

Safe convertion/casting from uint256 to int256

I have a small function getConversionRate() that converts a value in ETH to USD using AggregatorV3Interface.latestRoundData(). Here priceFeed is a implementation of AggregatorV3Interface using ...
2
votes
1answer
110 views

Request multiple random number at once on chainlink VRF

Would it be possible to require more than one random number on the chainlink VRF with only one call to requestRandomness or any other function ? Thank you
0
votes
1answer
40 views

how do i change the price feed token from eth /usd to busd/usd with the chainlink oracle?

I am trying to get the price feed for BUSD/USD using the chainlink pricefeed oracle but it tells me that the code was reverted. this is also happening when i switch to any other token, i am using the ...
2
votes
2answers
223 views

Why some ERC20 tokens have different Transfer event ABI signature than Transfer(address,address,uint256)?

Looking at ChainLink ABI (using this tool) I see { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": &...
1
vote
0answers
30 views

How to walk down an API when making a chainlink get request?

Am trying to make a chainlink Get>Bool httpget request on the fantasy premierleague API but keep getting a false response. my code is: ''' function getGwstaus() public returns (bytes32 requestId) ...
1
vote
1answer
51 views

How to edit minium link payment as a node-operator

Been running a node, and I notice the payment in configuration settings is not editable, how do I figure that out, also am not seeing the Oracle balance in link increase and it debiting the user using ...
1
vote
1answer
32 views

Running chainlink node on google cloud and accessing the node server as an operator

I was able to access the localhost:6688 when I was running the node server, so whenever I closed the console the server will go down, so I decided to detach it by installing sleep now the server is up ...
0
votes
0answers
27 views

ProviderError: The execution failed due to an exception while deploying ChainlinkPriceFeed

Iam re-deploying Enzyme-Protocal smart contract in kovan testnet Git repo link It has a ChainlinkPriceFeed smart contract and it takes [ fundDeployer.address, weth, ethusd, primitives, aggregators, ...
2
votes
1answer
234 views

File outside of allowed directories on brownie compile command

trying to import to files from openzeppelin and chainlink in my contract file like so: import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@chainlink/contracts/src/v0.6/...
2
votes
1answer
45 views

Need help for extracting historical prices using chainlink api

This is my first time i am using a api call for implementing on project for predicting the avalanche price feed for machine learning to get the historical data for 2 years. I want api call from ...
1
vote
1answer
32 views

Make external adapter call only accessible through smart contract

sorry if this is a newbie question, I'm new to solidity and smart contracts. I want to make an API call on my smart contract but from what I saw, I have to implement a Chainlink external adapter. Now, ...
0
votes
2answers
107 views

How to call a payable function with no parameters?

I'm creating Ether Coin Flip. Works like this. Person A calls new coin flip function with 1 Ether Person B calls End coin flip function with 1 Ether Smart contract uses VRF to randomly pick winner ...
0
votes
0answers
16 views

Solidity: HTTP req w/ Headers

I'm attempting to make POST / GET requests containing headers as my API require them... I thought I would be able to accomplish this via Provable-Things, as they also offer an encryption option. ...
0
votes
0answers
59 views

Contract deploys and gets funded but gives 'Gas estimation failed' error later on

I am updating a parametric insurance smart contract written last year and have run into a problem. I am able to successfully deploy the insurance provider contract (the parent contract) and fund it ...
0
votes
1answer
17 views

Chanlink Public CryptoGraphy

While chainlink creates a random number and more secure public cryptography algorithm, I recently came across the quantum resistive ledger concepts and resistive to a quantum computer with hash mesh ...
0
votes
0answers
151 views

Locally test Chainlink VRF call from another contract in Waffle/Hardhat

Locally testing Chainlinks VRF While trying to locally test a contract that calls a Chainlink VRF contract, I'm experiencing some difficulties in setting up the contract balances. I have a ...