Skip to main content

New answers tagged

0 votes

Execution Revert on Chainlink Function Send Request

As, you've mentioned: i am not using any secret key The problem is that you've to use the API key as a secret, because OpenAI API that you'e using (i.e., https://api.openai.com/v1/chat/completions) ...
SYED ASAD KAZMI's user avatar
1 vote
Accepted

Chainlink VRFv2Consumer deployment error

The subscription id that you’re getting when creating the subscription using the VRF Subscription Manager is of VRF V2.5, not VRF V2. Therefore, it’s in uint256 format, instead of uint64, as VRF V2.5 ...
SYED ASAD KAZMI's user avatar
0 votes

Chainlink VRFv2Consumer deployment error

The subscription ID is a uint256 now. You should use VRF V2.5 as it takes a uint256 as an input instead of a uint64 which is the cause of the error.
Ougi's user avatar
  • 320
0 votes

cant get my data from my api with chainlink functions

In your getProductInformationSource.js, the res.data.price (i.e., one of the fields in your API response) is of type float. So, in order to encode the same as uint256, you've to remove the decimal ...
SYED ASAD KAZMI's user avatar
2 votes
Accepted

Chainlink Functions: How can I get array from my JS file and use it in the contract?

In your Functions script, you've to return the hex representation of the buffer value. You can use ethers library to achieve that with ease, and test the same using @chainlink/functions-toolkit ...
SYED ASAD KAZMI's user avatar
0 votes

Chainlink Cross chain transaction getting reverted on source chain router call

The issue got resolved. I had to fund my contract with ETH.
MAYANK CHHIPA's user avatar
0 votes

Getting Returned Value not an Array Buffer or Uint8 Array While Fetching Response from Chainlink Offchain Function

It is difficult to have a suggestion without seeing the code but here are some thoughts, if I may. Firstly please use const encoded = ethers.AbiCoder.defaultAbiCoder().encode( ["uint256", &...
Sokrates's user avatar
  • 123
0 votes

Transaction failing due to Out of gas

I found the way to override gas Limit. I'm using hardhat-deploy plugin along with hardhat. This is the correct way to set gas limit: const { ethers, getNamedAccounts, deployments } = require("...
MAYANK CHHIPA's user avatar
0 votes

Transaction failing due to Out of gas

It says failed for out of gas on the transaction 296,658 (100%). Rerunning with 318,664, passes. Might consider using the method eth_estimateGas, then adding a slight buffer to the result, as will ...
Maka's user avatar
  • 1,220
0 votes

How to fetch Lido current Staking APR

Just in case if anyone still needs this, now there is an API https://eth-api.lido.fi/v1/protocol/steth/apr/sma { "data": { "aprs": [ { "timeUnix": ...
herman's user avatar
  • 1
0 votes

Chainlink Off-Chain Function Fails with API Key Authentication

Hello Varad There are some approaches related to authentication using Chainlink Functions. Here are some tutorials to help you: Using DON-hosted Secrets in Requests Using User-hosted (gist) Secrets ...
Solange Gueiros's user avatar

Top 50 recent answers are included