Questions tagged [chainlink]

Chainlink is a decentralized oracle technology connecting smart contracts on any blockchain to data providers, web APIs, enterprise systems, cloud services, IoT devices, payment systems, other blockchains, and more. This tag should be applied to any question about building or debugging decentralized oracles with Chainlink.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How can I use the chainlink VRF to randomly get 4 numbers by calling the dealCards function?

I created the dealCards function to randomly select 4 numbers which will then passed to fulfillRandomWords to select 4 cards from the deck based on the 4 randomly selected numbers. When I call ...
Daryle's user avatar
  • 13
2 votes
0 answers
26 views

Where can I find the address of the CommitStore contracts?

I want to use the manuallyExecute method in the OffRamp contract, using the Golang example. But I can't find the address of the CommitStore contract that is needed in the config file https://github....
Gonzalo Lopez's user avatar
0 votes
1 answer
38 views

Two quotation marks in sum task

I have such a job: type = "cron" schemaVersion = 1 name = "gasOp" forwardingAllowed = false maxTaskDuration = "0s" schedule = "CRON_TZ=UTC 0 */1 * * * *" ...
Linux Issues's user avatar
0 votes
1 answer
19 views

Failed to fetch error in chainlink functions registration

I can't register my Chainlink Functions Subscription, I keep getting this error "Failed to fetch" I have tried both Mumbai and Ethereum Sepolia test-network
SMTP King's user avatar
  • 439
0 votes
0 answers
36 views

Is there anyway to debug a Chainlink Functions request that returns 'Fulfilled with error'?

When sending a request to Chainlink Functions 'DON' from a functions consumer contract, my transaction is successful and the subscription is charged, however I do not receive the data requested from ...
Vince Reid's user avatar
1 vote
1 answer
19 views

how to send an abi encoded message with Chainlink CCIP?

I want to use a programmable token transfer using Chainlink CCIP. I want to send a token from Mumbai (source chain) with an function call in another contract on Avalanche (the destination chain). I ...
Nicksta's user avatar
  • 11
-1 votes
0 answers
21 views

Did not get early access to Chainlink Staking v0.2, despite meeting the requirements

Basically, when I checked my eligibility for Chainlink Staking v0.2, it said I was part of the general access. I checked the requirements for early access and I believe I meet the requirements to be ...
Nooman's user avatar
  • 1
-1 votes
0 answers
48 views

I cannot get the last received message details from CCIP chainlink

When I send a token through cross chain using this smart contract // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import {IRouterClient} from "@chainlink/contracts-ccip/...
Spielcrypto's user avatar
-1 votes
0 answers
38 views

I get error from the Chainlink example when I try to execute sendMessage function

I try to do this example https://docs.chain.link/ccip/getting-started however It fails when I execute the sendMessage function: Error: execution reverted (unknown custom error) (action="...
Spielcrypto's user avatar
-2 votes
0 answers
20 views

Hi until i add that timestamp function works fine and gives me random words but after i add timestamp numbers are not getting generate

function fulfillRandomWords( uint256 _requestId, uint256[] memory _randomWords ) internal override { require(s_requests[_requestId].paid > 0, "request not found&...
Bhushan Dhiware's user avatar
-1 votes
0 answers
22 views

Chainlink Functions: Error: Subscription ID "" is invalid or does not exist

Hello StackOverflow I keep getting this error when trying to run the application with the command provided in the image errorlink The error has been persistent even though I have created a ...
Paul Nakitare's user avatar
0 votes
1 answer
25 views

Error encountered when attempting to send request to DON gateway URL

I am using Chainlink function and I encountered error when sending request to DON gateway: "https://01.functions-gateway.testnet.chain.link/" and "https://02.functions-gateway.testnet....
Bryan Joseph Factor's user avatar
-1 votes
1 answer
33 views

Error: Error fetching information for subscription ID, Chainlink Functions

I want to use Chainlink functions, for it I need my subscrition.I am using the functions-hardhat-starter-kit from chainlink github documentation. I got indeed a subriction with the PolygonMumbai ...
pirqqs's user avatar
  • 9
0 votes
1 answer
22 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 ...
CheeseMcBurger's user avatar
0 votes
0 answers
13 views

How do I call a function from another contract using Chainlink Automation

I am trying to call a function from another contract using the Chainlink Automation performUpkeep function. The function I am specfically trying to call is assertTruth from UMA's OptimisticOracleV3. ...
Emmaniii's user avatar
0 votes
1 answer
19 views

I want to use crypto.hash inside the chainlink functions

I want to use the crypto package to use the crypto.getRandomNumbers and crypto.createHash() inside the source.js in the 1-simple-computation of the chainlink functions. This is my code : // calculate ...
pirqqs's user avatar
  • 9
0 votes
1 answer
73 views

How can we use Chainlink's CCIP with our own token contracts?

I tried Chainlink's Cross-Chain Interoperability Protocol (CCIP) via their starter kit at https://github.com/smartcontractkit/ccip-starter-kit-hardhat. It worked well for the CCIP-BnM test token that ...
SKYBITDEV3's user avatar
0 votes
1 answer
36 views

How can I return an array of structs using a Chainlink Direct Request job?

I'm trying to return an array of custom type (struct) MyStruct[] of ambiguous size to my Chainlink consumer contract, and am having trouble developing the appropriate job config (TOML) for it. I'm ...
Donald's user avatar
  • 130
0 votes
0 answers
57 views

Chainlink transactions stuck on Pending even with subscription funded

I have a chainlink subscription on Polygon Mainnet that was working perfectly until I ran out of LINK for my subscription, at which point all transactions for requests on random numbers were put into ...
yerbamati's user avatar
0 votes
0 answers
39 views

Using chainlink contracts and openzeppelin upgradeable contracts

I am using the VRFConsumerBaseV2 contract from the chainlink library. Now I'm trying to make my smart contracts updatable using the UUPS mechanism. How can I adapt VRFConsumerBaseV2 for use in ...
Dmitrii Golubev's user avatar
0 votes
0 answers
36 views

How to reliably estimate the Chainlink VRF cost in LINK client side?

I'm using Chainlink's VRF V2 direct funding method and I want to pass the cost of the random words callback to the account initiating the transaction. I have figured out what my callback gas limit ...
unexplored's user avatar
  • 1,414
0 votes
0 answers
29 views

How to make Functions.makeHTTPrequest call in Reactjs application and pass that same React component as a string in executeRequest smart contract Call

How do I make a post request similar like above in a ReactJs application and pass the same as a string while calling the executeRequest function in FunctionConsumer.sol? const apiResponse = await ...
Kenil shah's user avatar
2 votes
1 answer
51 views

Pay Eth to ChainLink

I want to pay the chain link's cost automatically with Eth tokens instead of link tokens because I have eth tokens in my smart contract, is this possible? I need everything to be automated and if I ...
elham Soleimani's user avatar
0 votes
2 answers
30 views

Can chainlink function read local data?

I try to use chainlink function to retrieve local data, but got an error of "Error: Import of module node-dht-sensor not allowed" . I'd like to know whether Chainlink Function can be used to ...
james's user avatar
  • 3
-1 votes
2 answers
64 views

Chainlink VRF v1 Error Message: Below Paid Agreement

I've set up a smart contract lottery using the vrf. I ran it on testnet and it was fine. I then deployed on mainnet, and passed through the values as referenced here :https://docs.chain.link/vrf/v1/...
WeebleWobbinsinWibbenses99's user avatar
0 votes
0 answers
82 views

Error Deploying Chainlink Data Feed Smart Contract on SepoliaTestnet Using WalletConnect in Remix

I am new to blockchain developement and experimenting with chainlink Data Feed example smart contract that obtains the latest price from BTC/USD. I tried to deploy the contract on Sepolia testnet ...
Komal Gilani's user avatar
0 votes
0 answers
19 views

Import result from Chainlink function to checkUpkeep()

I'd like to import a uint256 variable A I've got from the chainlink function into the checkUpkeep() function for threshold checking. For example, if variable A is larger than some threshold, then ...
james's user avatar
  • 3
0 votes
1 answer
30 views

Chainlink Function request realtime API data encodeUint256 invalid input

I try to write a source.js my chainlink function, but it seem that there problem with the data type. I'm trying to get the "footprint" data from the real time API (link below). Since this ...
james's user avatar
  • 3
0 votes
1 answer
15 views

Will the Chainlink VRF event make the requested randomness public?

The code in VRFCoordinatorV2.sol indicates that a RandomWordsFulfilled event will be emitted, containing the outputSeed parameter (also known as randomness). Will this event expose the requested ...
xJetRy's user avatar
  • 1
0 votes
1 answer
40 views

Chainlink api call to retrieve a string value from json (from a real-time API)

I'd like to use Chainlink GET api to retreive the sensor value from a Real time sensor API. For example, the api might return an updated json file between a time interval. I'd like to know if there is ...
james's user avatar
  • 3
0 votes
1 answer
15 views

External API Calling Security

If I'm calling an external API from a smart contract, how safe and secure can I assume the data come back is? What is in place to prevent a rogue node from doing bad things? Is a 51% attack a thing ...
Darthg8r's user avatar
  • 12.4k
0 votes
1 answer
35 views

How to use UpKeep Automation Payable function In Chainlink

I want to send native ETH to another smart contract address using a function. But when I try to send using payable(toaddress).send function or call value function it throws error. And say that I have ...
MD BAHA UDDIN's user avatar
0 votes
1 answer
81 views

ERROR: Response is too large | Chainlink Functions

I am trying to perform a Chainlink Functions request from my smart contract deployed on Polygon Mumbai Testnet. This is my deployed Contract => here To obtain the Function source Code, call the ...
Gabriel Antony's user avatar
0 votes
0 answers
17 views

Loaders not working for nomic foundation/ hardhat packages

I have configured these loaders, but they are unable to work with the hardhat packages here. I tried multiple loaders in that attempt:
Bonsu's user avatar
  • 77
0 votes
0 answers
70 views

Chainlink functions : Failed to estimate gas for tx error (Foundry version)

I have encountered an issue that I have been struggling with for some time now relating to the chainlink functions. I've been trying to call an API using the execute request function from foundry. ...
Maroutis's user avatar
-1 votes
1 answer
37 views

How can I get RandomNumber by using Chainlink VRF

this is RandomNumberConsumer.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; contract RandomNumberConsumer is ...
Tomas Wolfgang's user avatar
0 votes
0 answers
14 views

How to access deeply nested value from json response using chainlink API consumer contracts

I have tested the connection to the api, it works. Testing this on Polygon Mumbai Testnet. I am trying to access duration.value and distance.value from the json response. I have unable to get my ...
Srikanth Alva's user avatar
0 votes
1 answer
53 views

Brownie Github Actions workflow

I am trying to deploy smart contracts on Ethereum Sepolia testnet using python brownie eth-brownie==1.19.3. My scripts work locally, but I want to deploy from Github Actions directly for a CICD ...
Matt - Block-Farms.io's user avatar
0 votes
1 answer
74 views

Cannot read properties of undefined (reading '0') - Error retuned by Chainlink Functions oracle

I have been building with Chainlink Functions for Chainlink Spring 2023 hacakthon. I cloned the functions hardhat starter kit template from Chainlink and now this is working repository here All the ...
GABRIEL ANTONY XAVIOUR 20EC's user avatar
0 votes
1 answer
101 views

Chainlink Functions fulfillRequest failing due to callback gas limitation

I'm facing a problem with the fulfillRequest from Chainlink Functions beta. My callback function (fulfillRequest) is consistently failing and I don't get the successfull OCRResponse event. I was ...
André Teves's user avatar
0 votes
1 answer
122 views

Chainlink functions: Handling API calls, secret transmission and flow coordination in a blockchain-based P2P token swap system

I'm currently working on a protocol that acts as an intermediary for peer-to-peer token transactions using PayPal for payments. Here is the flow: User A (buyer) pays with PayPal for some tokens from ...
Nindo's user avatar
  • 96
4 votes
1 answer
5k views

Remix: Returned error: {"jsonrpc":"2.0","error":"invalid opcode: PUSH0", "id":2405507186007008}

After runing my private chain node in geth and Chainlink node in my Ubuntu, I would like to test the function of Chainlink Any API(https://docs.chain.link/any-api/get-request/examples/single-word-...
Keike1's user avatar
  • 43
0 votes
1 answer
492 views

What is causing gas estimation error when calling KeeperRegistry2.0 with contract?

I use a contract to call the KeeperRegitry2.0 to manage the upKeep state. There is a sample Contract : interface IKeeperRegistry { function pauseUpkeep(uint256 id) external; } contract ...
user7424538's user avatar
0 votes
1 answer
40 views

Chainlink Functions: Arguments into requestConfig and Output to Custom JS

My hackathon project involves a use case in which I'm taking user input and sending to an intermediary server for processing, and then forwarding input to the Functions-request-config file as a string ...
TealWarlock's user avatar
0 votes
2 answers
41 views

VRFV2[chainlink] contract reverts on all transactions

I am attempting to utilize the VRFv2Consumer.sol file from chainlink. ALL of my transactions are reverting with the error: "Gas estimation failed: 'execution reverted'....If you wish to ...
wayne 's user avatar
  • 11
0 votes
1 answer
56 views

Invalid value error when using Chainlink Functions request script

I am working through the Adding Chainlink Functions to an Existing Project tutorial: https://docs.chain.link/chainlink-functions/resources/add-functions-to-projects I am not trying to integrate my own ...
equcap's user avatar
  • 1
-2 votes
1 answer
166 views

Find price feed contracts Addresses of chainlink within smart contracts

I am developing a contract in which I have to check whether the incoming token is paired with USD to get the price feed of Chainlink from the smart contract. Only such tokens are going to be added to ...
Keerthana Ramalingam's user avatar
0 votes
1 answer
48 views

Chainlink Functions: _Error thrown in sandboxed source code__ Cannot find module './server.js'

Building on the Functions-ChatGPT integration workshop, I wrote server.js code in which the idea is to get a ChatGPT prompt from the user from another client. The steps my server takes are: listens ...
TealWarlock's user avatar
0 votes
1 answer
134 views

Why 'Maximum number of redirects exceeded' error when connecting to the OpenAI API

When I attempt to use the following code to interface with the OpenAI API by chainlink functions, I encounter an error stating 'Maximum number of redirects exceeded'. Here is the code I am using: ...
user7424538's user avatar
0 votes
0 answers
24 views

Chainlink functions implementation with args entered by user

I'm using chainlink functions to make an http request to openai but the thing is that we need to enter the source, secrets again and again we send a request. Is there any way which requires only args ...
Zumba Zumzum's user avatar

1
2 3 4 5
11