Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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

Chainlink Functions: RWA Tokenization (Minting 0 tokens)

When trying to call the mintStockTokens function from the fulfillRequest function the callback fails in the functions dashboard. I believe this is due to chainlink gas limits. If i call the ...
eik's user avatar
  • 3
-1 votes
0 answers
7 views

Error E0658: Use of Unstable Library Feature 'result_option_inspect' When Installing Deno with Cargo

I am trying to install deno using Cargo, but I keep encountering the following error: error[E0658]: use of unstable library feature 'result_option_inspect' --> /home/ubuntu/.cargo/registry/src/...
Varad 's user avatar
0 votes
1 answer
25 views

Chainlink Off-Chain Function Fails with API Key Authentication

I am working on a Chainlink off-chain function where I need to fetch patient data from an external API. The API requires an API key for authentication, which I have stored in secrets.apiKey. However, ...
Varad 's user avatar
0 votes
1 answer
24 views

Trying to deposit ETH to my contract with Chainlink Functions. Getting gas estimation errors

We were not able to estimate gas. There might be an error in the contract and this transaction may fail Keep getting this error when I am trying to deposit to my contract that is using Chainlink ...
eik's user avatar
  • 3
0 votes
2 answers
18 views

Chainlink Functions: my function run on playground but the request fails from the contract

This is my contract deployed on Optimism Sepolia. This is my Chainlink Functions script on playground (I removed the API Keys so that anyone can test): const wallet = args[0]; const providerId = args[...
v3n.gno's user avatar
0 votes
1 answer
21 views

I need the address of the oracle service that provides football match results and related pricing information

I am a blockchain developer, and I am currently working on a football betting project. I have completed the development of the relevant contracts on Ethereum. Now, I need an oracle service that ...
jin zhu's user avatar
0 votes
1 answer
27 views

Error while calling "requestRandomWords" function while implementing Chainlink VRF mock contract on local Remix environment

I've followed this tutorial, but when I tried to call function RandomNumberConsumerV2.requestRandomWords, I got the following error: [vm]from: 0x5B3...eddC4to: RandomNumberConsumerV2....
rebwar's user avatar
  • 3
0 votes
1 answer
24 views

Invalid type for argument in function call. Invalid implicit conversion from literal_string "" to bytes calldata requested

I'm doing the course of Patrick Collins to learn about programming in Solidity; but some libraries from Chainlink has been changed since 2 years ago. So, when I try to compile the code I have the next ...
Tucan's user avatar
  • 3
0 votes
1 answer
33 views

Chainlink Functions "sender not allowlisted" error

const { SecretsManager } = require("@chainlink/functions-toolkit"); const ethers = require("ethers"); const uploadSecrets = async () => { // hardcoded for Sepolia const ...
eik's user avatar
  • 3
0 votes
2 answers
47 views

Does Remix need to be deployed every time code changes are made?

I am writing Solidity code in Remix (creating a VRF with Chainlink) and every time I make changes, I deploy using my subscriptionID, and then call functions under Deployed/Unpinned Contracts. This is ...
matta's user avatar
  • 17
1 vote
1 answer
39 views

Creating a VRF on Chainlink, choosing between subscription vs direct funding, etc

'https://sepolia.etherscan.io/address/0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625' Why this Etherscan link specifically? Is it like a Chainlink contract, and then we are writing our own contract to the ...
matta's user avatar
  • 17
0 votes
1 answer
24 views

How to Implement a Minimum Funding Requirement in a Solidity Smart Contract?

I'm currently developing a Solidity smart contract named FundMe, where users can contribute funds in Ether (ETH). I'm aiming to enforce a minimum funding requirement of $50 USD equivalent. However, I'...
Kuldeep Sonara's user avatar
1 vote
1 answer
53 views

Chainlink CCIP publishing message (encoded function call) to bring USDC from another chain is getting reverted with "Ready for manual execution" error

The encoded function call corresponding to bringUsdcFromAnotherChain when called using publishMessageToBringUsdcFromAnotherChain is getting reverted with "Ready for manual execution" error ...
SYED ASAD KAZMI's user avatar
1 vote
1 answer
36 views

Bridging On-chain Data with LLM Models: Retrieving Token Information (Solidity + GPT)

I'm developing a Solidity token and exploring ways to leverage Large Language Models (LLMs) like GPT to answer user queries about the token's data directly within the application. Ideally, I'd like ...
Awais Ahmad's user avatar
0 votes
2 answers
14 views

What's the function signature for Chainlink's CCIP send?

Chainlink's CCIP send function definition looks like the following: function ccipSend( uint64 destinationChainSelector, Client.EVM2AnyMessage memory message ) external payable whenHealthy ...
Patrick Collins's user avatar
2 votes
1 answer
52 views

Error in Chainlink Functions source script with EthersJS for Writing to smart contract

After following this example of Chainlink Functions: I used a basic smart contract like below: // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.2 <0.9.0; contract Storage { ...
Sokrates's user avatar
  • 123
0 votes
1 answer
23 views

how to set the following environment variables: PRIVATE_KEY, Source Blockchain RPC URL, Destination Blockchain RPC URL

https://github.com/smartcontractkit/ccip-starter-kit-hardhat?tab=readme-ov-file I want test this project,at usage 2. I do not know how to set the following environment variables: PRIVATE_KEY, Source ...
潘伟霖's user avatar
0 votes
2 answers
32 views

Does Chainlink Have a Public Blockchain?

In Chainlink's documentation and tutorials, running a Chainlink node is explained along with brief mentions of the OCR protocol for node communication. When I run a Chainlink node myself, does it ...
Ehsan's user avatar
  • 80
0 votes
1 answer
41 views

How to implement Chainlink VRFv2 with Upgradeable Transparent Proxy smart contract?

I'm trying to implement Chainlink VRFv2 with my upgradeable smart contract, and none of the versions seem to work. Although I'm able to deploy the proxy correctly, when I'm trying to call function ...
BlackH3art's user avatar
1 vote
0 answers
22 views

Chainlink VRF on Arbitrum Sepolia fork: requestRandomWords Failing

I am going through the Foundry Course by Patrick Collins (@Big Shoutout) and I have just completed the section on creating the Raffle. I deployed the Raffle successfully on Eth Sepolia and created the ...
Charlie Mack's user avatar
1 vote
0 answers
14 views

Returning an array from a chainlink node job task

i want to return an array from my chainlink node from my smart contract but always get this error encode_data ethabiencode ETHABIEncode: while converting argument 'value' from <nil> to string[]:...
GOD's user avatar
  • 11
0 votes
1 answer
26 views

How to get the hash of the Fulfill Random Words transaction (callback) that gets mined after calling the Chainlink's VRF?

I have the hash of the transaction that called Chainlink's VRF but I need to get the hash of the callback transaction that gets executed after the RandomWordsRequested event is fulfilled. How do I do ...
Falcon Stakepool's user avatar
1 vote
1 answer
29 views

Chainlink client oracle pricing

I'm currently utilizing Chainlink Oracle to make API calls. According to the documentation, each call on testnet costs 0.1 Link. However, I'm curious about where I can locate pricing information for ...
Gleb Protasov's user avatar
0 votes
2 answers
73 views

How to use native token as fee in CCIP local unit tests?

Setting up unit tests for CCIP with the LINK token as the fee token is successful, but how can the same thing be done using native tokens such as ETH as the fee token? For example, here is part of the ...
palmcivet's user avatar
0 votes
0 answers
41 views

How I can sent ETH using alias 0xEe address?

How do I send ether through a smart contract using the 0xE alias for it in transactions from the UI? I've been sitting and racking my head for the fifth day. Here's an example of my function, tell me ...
Pavlo Konchych's user avatar
1 vote
0 answers
64 views

How to Implement Chainlink VRF into EIP2535 Standard Contract

I'm currently working on a smart contract that involves using Chainlink VRF (Verifiable Random Function) through a Diamond contract. My contract structure includes a performUpkeep function, which ...
PraveenMatheesha's user avatar
1 vote
1 answer
53 views

How to get chainlink price feed data for my national currency?

I am new to blockchain currently learning and exploring. I followed Patrick's tutorial and now in order to have hands-on I want to implement a FundMe smart contract but for my national currency ...
doc's user avatar
  • 111
0 votes
1 answer
35 views

Is there a way to get the fee of a Chainlink Automation job before it happens? Like CCIP's getFee?

I have a contract that uses Chainlink Log Trigger Automation and I want to be able to get the exact fee for the Automation before it happens. The user pays in LINK to use the contract and the ...
palmcivet's user avatar
0 votes
1 answer
41 views

weather api is not working in chainlink function playground

I tried to get weather information using weather API in Chainlink function, but getting error. I tried to run that Chainlink function playground.
Siid sharma's user avatar
0 votes
2 answers
29 views

Add consumer failing

I want to add consumers to an existing subscription but it's failing as only the owner can add the consumer I want to add Chainlink VRF in my NFT Marketplace and here I am creating NFTs in bulk so ...
Mahima Thacker's user avatar
0 votes
0 answers
25 views

VRF v2 for makeing randomnes number

I am trying to write a contract that generates a randomness number for some users who are going to mine (digging) in my game, and by chance one of them may find the random number and mine it and win ...
Helia Marami's user avatar
0 votes
1 answer
17 views

Execute functions of external contracts through chainlink automation contracts

I have two contracts. One is a contract that implements chainlink to obtain off-chain data. Part of its code is function requestConfig() public returns (bytes32 id) { Chainlink.Request memory ...
Leo's user avatar
  • 1
0 votes
1 answer
73 views

Error Encountered During Chainlink Dependency Installation with Foundry

I'm running 'forge install smartcontractkit/[email protected] --no-commit' to install Chainlink dependencies, but I encountered the following error: 'error: 2871 bytes of body are ...
Elyas Sarjoghi's user avatar
0 votes
0 answers
54 views

Chainlink CCIP Token Transfer error; failure to generate proper Client.EVM2AnyMessage

I am trying to follow the Chainlink's masterclass on CCIP in transferring a token cross chain but I keep getting roadblocked with this one error, Error: (code: -32000, message: execution reverted, ...
Domini's user avatar
  • 181
0 votes
1 answer
20 views

Getting "Invalid secrets ownership" error while using chainlink functions on polygon mainnet

I am trying to use chainlink functions on polygon mainnet with offchain-secrets, https://docs.chain.link/chainlink-functions/tutorials/api-use-secrets-offchain. While executing the same function on ...
Yash Goyal's user avatar
0 votes
1 answer
62 views

Unique Reports - Chainlink OCR2Base.sol

I was checking the OCR2Base.sol file in the CCIP repo and was wondering what the i_uniqueReports variable stands for. Especially, why would it change the transmit() function such that the expected ...
PensoGlide's user avatar
0 votes
1 answer
22 views

Does Anyone Know How To Implement CHAINLINK AUTOAMTION (Keepers) To be the "Executor" of the "Timelock" contract in a DAO?

I am trying to add a different element to a DAO - and that is to make Chainlink be the automatic "executor" of the "timelock" contract when the minDelay amount of time has passed. ...
Samuel Dominguez's user avatar
0 votes
0 answers
26 views

Safely converting 1 WEI to the current ETH/USD Chainlink price

Let c be the current floating point price of ETH/USD precise to 8 decimal places. Since Solidity cannot store floating points, getting the current price of ETH/USD from Chainlink's data feed returns c ...
nostonksafrica's user avatar
1 vote
1 answer
24 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 ...
DHC's user avatar
  • 367
0 votes
1 answer
33 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({ ...
Paul Nakitare's user avatar
1 vote
3 answers
175 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 ...
Hristo Todorov's user avatar
0 votes
1 answer
27 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 ...
Rishabh Raghwendra's user avatar
0 votes
1 answer
42 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 ...
Jack Vafi's user avatar
0 votes
0 answers
31 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 ...
kixsmart's user avatar
0 votes
1 answer
76 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 ...
Blaž Perić's user avatar
0 votes
3 answers
74 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 ...
szaleju's user avatar
0 votes
1 answer
370 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 ...
kixsmart's user avatar
0 votes
2 answers
77 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 ...
palmcivet's user avatar
0 votes
0 answers
75 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....
palmcivet's user avatar
0 votes
1 answer
25 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 ...
0xOmen's user avatar
  • 1

1
2 3 4 5
11