e.g. if I take the requestEthereumPrice()
example in the docs, and do this:
requestEthereumPrice();
uint256 x = currentPrice;
requestEthereumPrice();
uint256 y = currentPrice;
will x
and y
have different values (assuming the price changes in the time between requests)?
Hello Guys.
I'm trying to use 'Sleep' adapter but requests executes immediately without deley.
//ROPSTEN
address _oracle = 0xA3Ce768F041d136E8d57fD24372E5fB510b797ec;
bytes32 _jobId = "00364325dafb410bbdadd7d79e69eab5";
function _requestSobr(uint delay) private {
Chainlink.Request memory req = buildChainlinkRequest(_jobId, this, this.fulfill.selector);
req.addUint("until", now + delay);
req.add("get", "https://api.loanscan.io/v1/reference-rates/current/Sobr?tokenSymbol=DAI");
req.add("path", "DAI");
req.addInt("times", 100000000);
sendChainlinkRequestTo(_oracle, req, LINK);
}
I found an accepted bug, does it works today or am I doing something wrong?
[slack] <matterbridge> DenisGavrilin@lobby: Hello Guys.
I'm trying to use 'Sleep' adapter but requests executes immediately without deley.
//ROPSTEN
address _oracle = 0xA3Ce768F041d136E8d57fD24372E5fB510b797ec;
bytes32 _jobId = "00364325dafb410bbdadd7d79e69eab5";
function _requestSobr(uint delay) private {
Chainlink.Request memory req = buildChainlinkRequest(_jobId, this, this.fulfill.selector);
req.addUint("until", now + delay);
req.add("get", "https://api.loanscan.io/v1/reference-rates/current/Sobr?tokenSymbol=DAI");
req.add("path", "DAI");
req.addInt("times", 100000000);
sendChainlinkRequestTo(_oracle, req, LINK);
}
I found an accepted bug, does it works today or am I doing something wrong?
Hi all. I'm looking at implementing an ETH:USD price feed in my Ethereum dApp via the Chainlink Aggregator template.
I hear Chainlink prices are updated every 10 minutes. Are oracles synchronized with their price updates, or do they update on their own schedules? I'd like to ideally minimise gas and only request a new price when oracles have updated their data.
for this function:
function requestEthereumPrice(address _oracle, bytes32 _jobId, uint256 _payment)
Has anyone ran into this before ?
Hi Guys,
I use Chainlink to request data and then save it in a local variable. This variable is then assigned to an array. Unfortunately the data assignment to the array is not synchronous, because I get the result from Chainlink a bit later.
What can I do so that only when I receive the data from Chainlik, is it assigned to the array?
unable to lock ORM: dial tcp 127.0.0.1:5432: connect: connection refused
error when trying to start the chainlink container connecting to a postgres running in another container. i can connect to the db using a postgres client and i am using sslmode=disable
host.docker.internal
to tell docker that i want to connect to the host's localhost, not containers localhost
ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=3
MIN_OUTGOING_CONFIRMATIONS=2
LINK_CONTRACT_ADDRESS=0x20fe562d797a42dcb3399062ae9546cd06f63280
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*
ETH_URL=wss://ropsten-rpc.linkpool.io/ws
DATABASE_URL=postgresql://dbUsername:dbPASSWORD@127.0.0.1:5432/DATABASE?sslmode=disabled
DATABASE_TIMEOUT=0
-> chainlink git:(readme-build-steps) go run ./core/main.go local db preparetest
2020-06-24T16:28:16Z [INFO] Resetting database: "postgresql://localhost:5432/chainlink_test?ssl_mode=disable" cmd/local_client.go:360
unable to drop postgres database: pq: password authentication failed for user "ahmad"