Questions tagged [chainlink]
Chainlink is a decentralized oracle network that enables blockchain smart contracts to securely access off-chain data feeds.
493
questions
0
votes
1
answer
7
views
Can Chainlink time-based upkeep register multiple cron jobs in a single contract?
I have been trying to make a raffle platform with the Chainlink automation.
I can see the time-based upkeep can have only one cron job,
But when the raffles are created in the platform, each of them ...
0
votes
0
answers
9
views
Hello. On requesting via ChainLink playground source.js it returns a value but in the code I get Error:returned value not an ArrayBuffer or Uint8Array
This is the code
const city = args[0];
const state = args[1];
const country = args[2];
// Execute the API request (Promise)
const apiResponse = await Functions.makeHttpRequest({
method: 'GET',
...
0
votes
3
answers
27
views
ChainLink ETH/USD price oracle manipulation
I will be concise. I am using ChainLink ETH/USD price feed in my smart contracts. I am ready to deploy the smart contracts so I did a little bit of legwork researching mainstream hacks and one ...
0
votes
1
answer
11
views
Chainlink fulfillRequest is not able to call another contract
I am working on a project that includes Chainlink Functions (for off-chain API calls) and CCIP (to transfer tokens cross-chain).
My project includes 3 main contracts:
FunctionConsumer.sol: Chainlink ...
0
votes
1
answer
15
views
Setting up a Chainlink node in a Docker container on MacOS (Documentation Issue)
I've gotten most of the way through the LINK docs on how to build a chainlink node in container and the only issue I have not been able to trouble shoot is this error I keep getting in my ZSH terminal ...
0
votes
0
answers
8
views
verifying and publishing chainlink functions contract giving me error
I am trying to verify and publish my chainlink contract so I can read the response on polygonscan, but I keep running into the error: "Error! Unable to generate Contract Bytecode and ABI (General ...
0
votes
1
answer
26
views
Decoding Chainlink Function Response in Solidity Contract and Handling Nested JSON Objects
I'm dealing with a problem regarding the decoding of data obtained from a Chainlink function in my Solidity code. Specifically, I'm using a Chainlink custom function that sends an HTTP GET request to ...
0
votes
3
answers
56
views
Chainlink VRF Contract Logic Error
I am beginning my journey in web3 so please be understanding 🙂
I am struggling to find an issue in my contract that uses VRF. It is a simple coinflip written in Vyper. I have deployed a consumer and ...
0
votes
1
answer
36
views
Error happened while trying to execute a function inside a smart contract: Chainlink Functions Contract Deployment
Attempting to deploy this smart contract on the Mumbai Testnet.
The contract deploys and it's address is 0x435daA3ba0d89A92b91174DC745D013c201fcF6a.
But, when I try and press on the accept ownership ...
0
votes
2
answers
53
views
Chainlink Automation: why is registering upkeep directly from contract reverting?
I have a factory contract which deploys a custom contract. The custom contract imports Automation Compatible.sol and implements checkUpkeep() and performUpkeep()
The factory contract has a function ...
0
votes
0
answers
60
views
What is causing Arithmetic over/underflow when LINK.transferFrom() is called for ccipSend() fees?
I'm trying to write unit tests for a CCIP Sender contract.
ccipSend() on the Router is called and this line appears to be where things stop working:
IERC20(message.feeToken).safeTransferFrom(msg....
0
votes
1
answer
21
views
Is it possible Randomly generate and privately store data using Chainlink?
I'm working on a social coordination game for the Chainlink Constellation Hackathon. Game mechanics are similar to Mafia, Bang! or AmongUs where roles are assigned at the onset of the game. Roles ...
1
vote
1
answer
64
views
When testing Chainlink CCIP with Router.sol, what address should the onRamp be?
I'm trying to write unit tests for a Chainlink CCIPSender contract, but as far as I can tell it is reverting when calling getFee() to pay for the transaction.
In my test I call applyRampUpdates() from ...
0
votes
1
answer
17
views
JSONParse task error when filtering in chainlink Job Definition
When writing a job definition that makes an HTTP GET request to an external API, which returns a json array of objects, is it possible to use a JSONPath expression in the job definition to filter the ...
0
votes
0
answers
10
views
How to use chainlink automation to call a function with onlyAdmin modifier?
I have a smart contract that has a function with an onlyAdmin modifier. I want to use chainlink automation to trigger this function based on certain conditions. However, I don’t know which address to ...
0
votes
1
answer
27
views
can I get market data from chainlink and how?
I need to get price market cap and price change of cryptos do you know any free plans and how what limitations do they have?
0
votes
1
answer
13
views
How to guarantee or ensure uniqueness based on Chainlink VRF?
I am using Chainlink VRF V2 to generate 10 random numbers.
Assuming VRF generated something like this below.
[ 111.., 222.., 333.., 444.., 555.. 666.., 777.., 888.., 999.., 000..]
As best practice to ...
0
votes
1
answer
31
views
Approval question
Beginner question:
I have trusted wallet with 1000 LINK erc20.
I want to swap it to get USDT erc 20.
It ask to approve the LINK.
How long approval takes?
In some time after I got the USDT, I wish to ...
1
vote
1
answer
12
views
What are the risks in staking through my MM address?
Long story short my MM address is eligible for the Chainlink staking program that would lock my tokens into a smart contract on Ethereum for 1 year.
The concern I'm having is, because the address has ...
0
votes
0
answers
67
views
Facing issues while running Chainlink node on XRPL EVM Sidechain network
Basically, I’m trying to run a Chainlink node on XRPL EVM Sidechain network.
Here's the content of the config.toml file that I'm using:
[Log]
Level = 'warn'
[WebServer]
AllowOrigins = '\*'
...
0
votes
1
answer
20
views
Triggering User Defined Jobs On-Chain
I have been working on this dapp lately that allow users to create a product with an expiration date (don't mind the specifics of the app).
Once expired, a call to a smart contract should be made (...
1
vote
2
answers
69
views
Chainlink Stale Data latestRoundData() guide
How do we know if the validation of checking stale data is sufficient? Is only checking timestamp data sufficient?
(uint256 roundId,,, uint256 updatedAt, uint80 answeredInRound) =
...
1
vote
0
answers
49
views
ChainLink VRF requestRandomnes() failing
Here is the txn on sepolia: https://sepolia.etherscan.io/tx/0xb530e49bb505fad002923e957d784a4fa18084b65d79eabd4fc29b326a7e797e
Given below is the Factory contract that deploys a Raffle contract.
...
1
vote
0
answers
51
views
What happens with Chainlink price feed when L2 sequencer is down?
What exactly happens with chainlink price feeds when an L2 sequencer is down? I know that during this moment transactions can be submitted only through L1 rollup contract and that some users can be ...
2
votes
0
answers
40
views
Oracles supporting Polygon Zkevm
Are there any oracles present at the moment supporting smart contracts to securely retrieve data from conventional APIs (not data feeds) through HTTP(S) GET and POST calls.
We have looked into Witnet, ...
1
vote
1
answer
40
views
problem on running Chainlink node
I am currently running a linux aarch64 nvidia jetson tx2 machine. I try to run my chainlink node with docker using this docs here.
In the line of cd ~/.chainlink-nvidia && sudo docker run --...
1
vote
1
answer
26
views
is it necessary to use oracles for Integrating IoT Sensors and smart contract in a Supply Chain Management DApp?
What are the best practices and methodologies for developing a decentralized application (dapp) that focuses on streamlining supply chain management processes through the integration of IoT sensors? ...
0
votes
1
answer
22
views
Restricting External Adapter Access to a Specific Smart Contract: Is it Feasible?
How can I ensure that my external adapter is only accessible by a specific contract? Does the Post express middleware in the external adapter have a header key indicating the calling smart contract? I'...
1
vote
0
answers
109
views
How to test Chainlink Operator.sol in Foundry and find cause of revert?
I am trying to rewrite this test from Truffle/Javascript to Foundry/Solidity.
This is the specific part I am stuck on:
it("should not fulfill from unauthorized job", async function () {
...
0
votes
0
answers
9
views
why/ how does VRFCoordinatorV2 automatically fulfill randomness when LINK is deposited?
0
In my smart contract I've created an instances of both the LINK and VRFCoordinatorV2.sol contracts. I am also listening for the 'RandomWordsFulfilled' event which is emitted when 'fulfillRandomWords'...
1
vote
1
answer
25
views
How to call Chainlink Request Call from Another Contract
I am trying to invoke a Chainlink.Request method of one contract in another smartContract :
The farmContract.createFarm(.....) method makes a request to ExternalAdapter using Chainlink.Request and it'...
0
votes
1
answer
20
views
Issue with DynamicSvgNft Contract: getHighSVG() and getLowSVG() Functions Returning Incorrect Values
Hello Stack Exchange community!
I am currently working on a project that involves an NFT contract called DynamicSvgNft. The contract is designed to change the SVG image URI of the NFT based on a ...
1
vote
0
answers
51
views
Chainlink Oracle to call API
I have quite some question regarding Chainlink call API.
I made an API and trying to call it from my Chainlink through smart contract. As I linked my API to bridge in Chainlink Operator UI, I try to ...
1
vote
1
answer
29
views
Is it possible to wait for one block in order to get the VRF requested Number of words ? CoinFlip program
I am trying to create a CoinFlip program and using VRF Chainlink subscription funding method. In VRF we need to define two functions in order to get first the request ID and then the random number of ...
0
votes
1
answer
35
views
Facing errors with contract invocation ( Unable to access a function stating only owner can access it , even tho I am the owner)
(sorry for structuring the question in a wrong way as I am not sure what term to use precisely) I am facing issue while trying to call the function flip in the program below , I am using chainlinks ...
0
votes
2
answers
24
views
TypeError: Member "add" not found or not visible after argument-dependent lookup in struct Chainlink.Request memory
I encounter this error when trying to compile and migrate to my blockchain EVM.The smart contract supposed to trigger a job from Chainlink from Ganache EVM. This is the code to it
pragma solidity >=...
0
votes
1
answer
43
views
Chainlink says my EVM node is unreachable to localhost ganache
I have followed the instructions from chainlink doc here. In the instruction, instead of sepolia, I renamed to ganache because it will be linking with my ganache EVM.
As everything is setup, my ...
0
votes
1
answer
18
views
value for transaction for stable price with chainlink price feed
I have an NFT marketplace contract that sells NFTs with stable price and uses chainlink aggregator for price feed.
the contract code is like this:
import "@chainlink/contracts/src/v0.8/...
0
votes
0
answers
21
views
fetch any chain logo online
is there a place online to fetch a needed chain logo?? Thank you
Im fetching the name of a chain with this link https://chainid.network/chains.json but it doesn't contain any logos...(
1
vote
1
answer
21
views
Call fundSubcription() chain link vrf v2 using brownie gas fee error?
def addCustomerAndFundsub(_subId, _cunsumerContract):
account = get_account()
if network.show_active() in LOCAL_BLOCKCHIAN_ENVIROMENTS:
VRF_contract = VRFCoordinatorV2Mock[-1]
else:...
0
votes
0
answers
17
views
Someone can help me with thist issued: Gas estimation errored with the following message (see below)
Some one can help me to solve this issue, I'm student and I try to deploy a Smart Contract for a practic, I must Deploy 3 contract, When I Try to deploy the last one it show me an error "Gas ...
0
votes
2
answers
68
views
Can I deploy custom data feed?
I have next situation: I want to deploy my token and for others SCs I need to use Chainlink data feed to get price of the token.
But, as token is new, that's why Chainlink doens't have supported data ...
0
votes
1
answer
24
views
Automate Chainlink Get API
I am working on a Parametric Insurance contract, the API call is working as expected, but I need to automate the call to the requestRainData() function. I need to constantly check if the rain MM in a ...
0
votes
1
answer
26
views
Triggering function through Chainlink
I wanna make a hybrid smart contract where I have a function mint() . I want to call that function on a period of 24 hours. And I am thinking of using ChainLink's Time based automation. But I have a ...
0
votes
0
answers
26
views
What are the implications of inheriting ChainlinkClient in a UUPS upgradeable smart contract?
Chainlink doesn't currently provide an upgradeable version of its contracts, such as Openzeppelin upgradeable contracts.
For example, in order to inherit the ChainlinkClient in a UUPS upgradeable ...
0
votes
1
answer
21
views
Chainlink vs DEXs & NFT Market prices
I am doing a futures dApp, so I need the price of the underlying assets (all assets are on-chain not fiat). What is the difference between using DEX and NFT Marketplace on-chain prices as oracle and ...
0
votes
1
answer
28
views
Chainlink Functions: Compilation failed - undeclared identifier
DeclarationError: Undeclared identifier.
--> contracts/TADIEngine.sol:211:29:
|
211 | bytes32 assignedReqID = sendRequest(req, subscriptionId, gasLimit);
| ...
0
votes
1
answer
41
views
chainlink price feeds
fellow blockchain devs. I want to get the price of usdt into my contract but I want to use Chainlink price feeds. the contract is going to be deployed on the bsc network
I want to know if it is ...
0
votes
1
answer
21
views
ParserError: Expected '(' but got identifier --> dao.sol:98:10: | 98 | function correctMap(uint256 _mapId) external { |
pragma solidity ^0.8.0;
contract EvacDAO {
struct EvacuationMap {
address submitter;
string mapData;
bool isValid;
}
mapping(uint256 => EvacuationMap) public ...
0
votes
1
answer
30
views
Payable function issue
I am playing around with smart contracts and decided to build a simple contract for an eCommerce store. The contract allows the owner to add items to the contract with price in USD, it allows the ...