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
1 vote
0 answers
83 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 ...
user avatar
  • 11
0 votes
1 answer
182 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....
user avatar
  • 3
0 votes
0 answers
12 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?
user avatar
1 vote
1 answer
133 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 ...
user avatar
0 votes
0 answers
856 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, ...
user avatar
  • 11
1 vote
1 answer
643 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, ...
user avatar
2 votes
1 answer
52 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....
user avatar
0 votes
2 answers
68 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/...
user avatar
1 vote
1 answer
318 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 ...
user avatar
  • 113
3 votes
1 answer
537 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
user avatar
  • 33
0 votes
1 answer
97 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 ...
user avatar
2 votes
2 answers
1k 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": &...
user avatar
  • 31
1 vote
0 answers
58 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) ...
user avatar
  • 76
1 vote
1 answer
70 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 ...
user avatar
1 vote
1 answer
92 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 ...
user avatar
0 votes
0 answers
48 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, ...
user avatar
2 votes
4 answers
1k 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/...
user avatar
2 votes
1 answer
160 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 ...
user avatar
1 vote
1 answer
65 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, ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
0 answers
26 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. ...
user avatar
0 votes
0 answers
150 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 ...
user avatar
  • 21
0 votes
1 answer
19 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 ...
user avatar
  • 1
1 vote
0 answers
573 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 ...
user avatar
  • 35
0 votes
0 answers
45 views

Solidity equivalent of ${object} of Javascript

Alright, I have a function that accepts a string, that I want to use to send individualized requests to a URL. How do I insert my functions string parameter into my get request? This is using ...
user avatar
1 vote
1 answer
180 views

Chainlink "Any API" Returning 0

I want to use the chainlink API features but I can not get the data. When I try to execute requestEthereumPrice function I get "uint256: 0" I am using Kovan test net and metamask. pragma ...
user avatar
1 vote
1 answer
50 views

What exactly is the role of Oracles like Chainlink in decentralized insurance?

I am from the insurance industry, and I'm trying to understand if there's any value that blockchains and smart contracts can provide in this domain. I'm trying to understand things at the conceptual ...
user avatar
0 votes
1 answer
320 views

Getting error member `add` not found when using ChainlinkClient.sol v0.8.0

I'm trying to use Chainlink APIConsumer example and for the same I'm importing v0.8/ChainlinkClient.sol file. On compiling APIConsumer contract, I'm getting below error. ERROR TypeError: Member "...
user avatar
  • 232
0 votes
1 answer
192 views

Why are my internal txns failing in my transaction?

I've deployed the chainlink alarm job to an oracle on bsc testnet. I'm attempting to transfer tokens from one address to another at a set time in my smart contract, and the transaction appears to be ...
user avatar
  • 3
0 votes
2 answers
63 views

Biased Random Number based upon balance of ERC20 tokens

I have been able to use Random Number Generator from Chainlink. But I need something that has biased Random Number. What I mean is suppose a userA has 100 ERC20 Tokens balance but another userB has ...
user avatar
  • 363
1 vote
2 answers
189 views

Chainlink historical price for AggregatorV3Interface

Similar to this question How to get all the historical data from chainlink price feeds? I would like to retrieve the historical data of a particular price feed to be used off-chain for a large number ...
user avatar
  • 11
1 vote
1 answer
948 views

Chainlink VRF fulfillRandomness function does not work as expected with storage variables

I created simple smart contract that generates game character with random attributes and pushes it to an array. Function requestNewRandomCharacter() does three things: Changes characterNameForMinting ...
user avatar
  • 112
0 votes
2 answers
305 views

Error in Executing Price Feed Function in Chainlink

This is my code. After deploying it to Kovan Test Net. Whenever I try to run the function getPrice() it returns : call to PriceConsumerV3.getPrice errored: Error: VM execution error. Reverted 0x ...
user avatar
1 vote
3 answers
200 views

Cannot find module '@chainlink/contracts/truffle/v0.4/LinkToken'

I was following these steps in order to use Chainlink on Kovan testnet. when I've finished the configuration (truffle-config.js, npm install to get all the dependencies, etc.) and I've compiled the ...
user avatar
  • 141
1 vote
2 answers
149 views

Getting an error even using the same compiler version (Visual Code)

I made a contract using Remix and it's working perfectly. When I create a project in Visual Code (in order to make a DApp) I'm getting this error when I import a source of Chainlink: If I compile ...
user avatar
  • 141
0 votes
1 answer
49 views

What is the smallest amount of LINK?

Similar to What is the smallest amount of Ether?, what is the smallest amount of LINK?
user avatar
3 votes
1 answer
2k views

Getting LINK for Ropsten network

I'm trying to get LINK for Ropsten. I'm using this faucet: https://ropsten.chain.link/ and, when I've added the new token, I've used this address 0x20fe562d797a42dcb3399062ae9546cd06f63280 (Chainlink ...
user avatar
  • 141
2 votes
1 answer
735 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 ...
user avatar
2 votes
2 answers
59 views

Will a transaction fail if a states from another contract changes before the transaction is confirmed?

I am building an application that you can purchase USDC by paying ETH. I am getting the USDC amount from msg.value(ETH) by directly calling a chainlink pricefeed in my function. function ethToUsdc() ...
user avatar
  • 237
2 votes
1 answer
263 views

ChainLink VRF number length

Is the length (number of digits) of the number generated by ChainLink VRF always the same? My contract executes modulus operations to get subnumbers of the big number generated, so if it's not the ...
user avatar
  • 43
1 vote
1 answer
1k views

Chainlink VRF fulfillRandomness doesn't use enough gas to perform function - how to get it to use more?

Chainlink VRF allows users to get a random number by calling requestRandomness and then waiting for the fulfillRandomness callback to be called by the Chainlink contract. I have a function ...
user avatar
0 votes
0 answers
206 views

"Gas estimation failed" error when sending eth to Chainlink VRF function?

I have a simple request and fulfill randomness using chainlink VRF, and it works fine when calling with 0 ether, but if I send a non-zero amount I get a 'gas estimation failed' error. To be clear, I ...
user avatar
0 votes
1 answer
74 views

EthTx Adapter in Chainlink - Txn Construct Details

I am setting up chainlink node for Xinfin Network for Apothem. While submitting the transactions, it is reverted on chain. We tried to debug and the json looks like below. { "id": &...
user avatar
  • 1
0 votes
1 answer
222 views

Chainlink call callback function in a different contract

I have 2 Smart Contracts, the StockAPI which is a ChainlinkClient and the RepToken Smart Contract. The StockAPI is the Chainlink API Consumer and is called by RepToken via the evaluatePredictions ...
user avatar
0 votes
0 answers
157 views

EthTx adapter in Chainlink job, fails with “transaction reverted on-chain”

I have gone through the existing error link EthTx Adapter in Chainlink Job and the solutions recommended is also tried, but still i am facing the same issue. Approach I taken to debug is given below ...
user avatar
  • 1
3 votes
1 answer
121 views

Is there a mechanism for fair, trustless Chainlink oracle pricing?

When using a Chainlink oracle node that you don't have a formal commercial agreement with, the user pays the node operator in Link tokens, but the node operator bears the cost of transacting on the ...
user avatar
  • 203
2 votes
2 answers
503 views

Chainlink Beginner Tutorial: call to PriceConsumerV3.getLatestPrice errored: [object Object]

I have followed the steps in the Chainlink docs Beginner's tutorial, as described here: https://docs.chain.link/docs/beginners-tutorial/ Everything appears to work until the last paragraph: Click &...
user avatar
0 votes
1 answer
150 views

How do I force a Chainlink price oracle to return a diffrent price for an asset with Hardhat mainnet forking?

I'm working on a DeFi protocol and I would like to test liquidations with Hardhat mainnet forking. Plan is quite simple: Send enough ETH from my test account to the Binance wallet to pay for gas. ...
user avatar
0 votes
1 answer
864 views

Not receiving LINK from Chainlink kovan faucet

I attempted to get funds from kovan.chain.link to my metamask address and the money did not come through. I got some errors as seen here: https://kovan.etherscan.io/tx/...
user avatar
  • 15
0 votes
0 answers
203 views

I had a error like : ParserError: Source file requires different compiler version , while using Chainlink&OpenZeppelin

I'm trying to implement PatrickAlpha NFT-mix implementation (Github link) . When I followed readme instructions, collectibles are minted correctly. But If I tried to change anything in the code , it ...
user avatar
  • 1