Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 12 14:11
    lhoenig commented #100
  • Apr 02 13:07
    cTatu commented #103
  • Mar 11 09:31
    gskapka commented #78
  • Feb 12 13:08
    ytrezq commented #78
  • Feb 12 02:41
    ytrezq opened #104
  • Feb 09 05:47
    kroos47 commented #103
  • Feb 04 09:55
    kroos47 commented #103
  • Feb 04 09:55
    kroos47 closed #103
  • Feb 04 08:39
    kroos47 opened #103
  • Jan 14 08:12
    MoMannn closed #102
  • Jan 14 08:12
    MoMannn commented #102
  • Jan 13 14:15
    MoMannn edited #102
  • Jan 13 13:06
    MoMannn opened #102
  • Nov 15 2020 01:26
    Manik-Jain opened #101
  • Sep 01 2020 17:25
    nurajc edited #100
  • Sep 01 2020 17:21
    nurajc opened #100
  • Apr 08 2020 15:39

    bertani on master

    feat: adds contract api compati… chore: changes supported compil… chore: rm deprecated .value(...… and 1 more (compare)

  • Apr 08 2020 15:39
    bertani closed #98
  • Apr 08 2020 15:19
    allemanfredi synchronize #98
  • Apr 08 2020 15:19

    allemanfredi on solidity_0.6

    chore: rm deprecated .value(...… (compare)

udkreddySomish
@udkreddySomish
Hii guys
Does Oraclize support Matic network?
Oraclize Support
@oraclize-support
Hi @udkreddySomish - will integrate wherever there is demand, so we'll note you demand for matic and look into integrating there.
Jamie M
@Jamchello

@oraclize-support Any chance the Ropsten node will be repaired anytime soon?

@oraclize-support

┗(°0°)┛
@DanMarti93_twitter
Hello guys, are you aware of any issue in Ropsten?
I do not receive any callback from the oracle when requesting a random number.
Thanks
hisarkopite
@hisarkopite_twitter

@oraclize-support i have set up oraclize on my ethereum based private network with the help of ethereum bridge module.

Now in docs it is mentioned that some account will be deducted from my contract to pay for the fees.

The fee consist of two parts, as mentioned in the docs-
a) The amount of Wei which corresponds, using a recent exchange rate, to the USD price for the data source and the authenticity proof requested
b) The amount of Wei which Provable will spend in gas for sending the callback transaction

But on my private network , amount is being deducted from my contract and also my account is being used to send the callback transaction.

i run the bridge with this command

node bridge.js -H https://myRpcUrl -a 7 --oar 0x519039A70733C152344d4517020C2362c580Ef20

and this account 7 is actually paying the callback transaction fees, gasLimit 200000, gasPrice 20GWei

Am i paying extra or is this how it works on ethereum based private networks ?

Oraclize Support
@oraclize-support
@hisarkopite_twitter - That account is being used to make the callback transactions itself, which accounts for the spending you're seeing happen on that account.
hisarkopite
@hisarkopite_twitter

@oraclize-support i don't think the same happens on ethereum mainnet or testnets, on private network i have funded the above mentioned account from which the callback transactions are being made.

I don't think on ethereum networks people fund accounts for the callback transactions.

Oraclize Support
@oraclize-support
@hisakopite - you are correct thta the same thing doesn't happen on the public testnets & mainnet, because there the callback address(es) are controlled by the Provable service. So on those networks you won't see their balances changes unless you're specifically looking to.
Hassan Abdel-Rahman
@habdelra
@oraclize-support is there an outage with Rinkeby right now? My query ID is 0x13483a83d1b8d09c99f7011828c71bdaf7acdc7b45123f40959934d21a6d2310, which was issued in transaction 0x9243dc2451edface44ffe1759de63e8acf885810e23025c8b2fce7fb9013709e on rinkeby for a nested computation query, but I've never received a callback
2 replies
phyermax
@phyermax
creation of Spectrum errored: Internal JSON-RPC error. { "code": -32000, "message": "gas required exceeds allowance (30000000) or always failing transaction" }
image.png
why!!! please!
Kallol Borah
@kallolborah
@oraclize-support do you support Quorum at all ? We are deploying some contracts on quorum and I just do not see a way of funding the oracle service.
poa010101
@poa010101
@oraclize-support when Provable start supporting Binance Smart Chain?
Oraclize Support
@oraclize-support

@phyermax - what network are you on?

@kallolborah - we are not integrated on Quorom at the moment but we integrate wherever there is demand and so we will log your demand.

@habdelra - thank you for your info and your helping that other user - much appreciated!

@poa010101 - the oracle is not integrated on Binance yet either but we'll note your demand.

Jonathan Weeks
@JohnWeeks1
@oraclize-support Hi guys, me again.
I still can't seem to get this working. Trying to make a post request inside a callback function programmatically (without clicking a button to trigger it). It's working fine if I put it as a public function and click it, but still, nothing gets sent to my DB if I want to do it straight after the callback function has been called.
What I'm trying to do is a get request and when the callback is fired then do the post request
Thanks again
function callback(bytes32 myid, string result) public { 
    if (msg.sender != provable_cbAddress()) revert(); 
    statusFromDatabase = result; 
    provable_query("URL", 
        "http://mywebsite/api/pending-orders", 
        '{"address":"0x5b38da6a701c568545dcfcb03fcb875f56beddc4", "status":"1"}' 
    ); 
}
┗(°0°)┛
@DanMarti93_twitter
provable for Ropsten is down since last week, any news?
Oraclize Support
@oraclize-support
@JohnWeeks1 - to make a POST request, you'd need to use the computation datasource since the URL datasource only supports GET requests. See here for an example: https://github.com/provable-things/ethereum-examples/tree/master/solidity/truffle-examples/url-requests
Milan Velebit
@mvelebit
Please post any updates here in case Rinkeby gets fixed as well. Thank you!
Oraclize Support
@oraclize-support
@mvelebit - rinkeby is back online!
1 reply
┗(°0°)┛
@DanMarti93_twitter
does this work on BSC?
Oraclize Support
@oraclize-support
@DanMarti93_twitter - the oracle is not yet implemented on the BSC chain, though we'll note your demand.
Khrystyna
@Khrysty38936386_twitter
@oraclize-support Hey, I do not receive any callback from the oracle on Ropsten https://ropsten.etherscan.io/tx/0xff889dd32a8ad761f7550b09f3666b63120b42215930079af7fe185490ad3920
Maybe you know what is the problem with this on Ropsten?
Thank you!
Oraclize Support
@oraclize-support
Hi @khtysty - the ropsten node is responding as expected in our tests - have you tried again?
1 reply
Oraclize Support
@oraclize-support

@RobertMCForster - We are not integrated in BSC yet not but you're quite right that the ethereum-bridge would allow you to implement there.

And yes, we do have an NFT bridge!

┗(°0°)┛
@DanMarti93_twitter
hello there! Does provableApi run on rinkeby too?
Oraclize Support
@oraclize-support
Hi @DanMarti93 - yes it does!
nagavenkataakhilkumar
@akhilkumarpuvvada

pragma solidity ^0.4.22;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";

contract ExampleContract is usingProvable {

string public ETHUSD;
string public ETHEUR;
event LogConstructorInitiated(string nextStep);
event LogPriceUpdated(string price);
event LogNewProvableQuery(string description);

function ExampleContract() payable {
LogConstructorInitiated("Constructor was initiated. Call 'updatePrice()' to send the Provable Query.");
}

function __callback(bytes32 myid, string result) {
if (msg.sender != provable_cbAddress()) revert();
ETHUSD = result;
LogPriceUpdated(result);
}

function updatePrice() payable {
if (provable_getPrice("URL") > this.balance) {
LogNewProvableQuery("Provable query was NOT sent, please add some ETH to cover for the query fee");
} else {
LogNewProvableQuery("Provable query was sent, standing by for the answer..");
* provable_query("URL", "json(https://api.pro.coinbase.com/products/ETH-USD/ticker).price");
}
}
} My Question : In the above Code That Indicates(**) there is a URL and from URL i am fetching data i.e i am fetching price from that URL into blockchain so my question is can i fetch two variables i.e price of USA and (is already there) and also another variables like price of EURO by single URL

nagavenkataakhilkumar
@akhilkumarpuvvada

`pragma solidity ^0.4.22;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";

contract ExampleContract is usingProvable {

string public ETHUSD;
event LogConstructorInitiated(string nextStep);
event LogPriceUpdated(string price);
event LogNewProvableQuery(string description);

function ExampleContract() payable {
LogConstructorInitiated("Constructor was initiated. Call 'updatePrice()' to send the Provable Query.");
}

function __callback(bytes32 myid, string result) {
if (msg.sender != provable_cbAddress()) revert();
ETHUSD = result;
LogPriceUpdated(result);
}

function updatePrice() payable {
if (provable_getPrice("URL") > this.balance) {
LogNewProvableQuery("Provable query was NOT sent, please add some ETH to cover for the query fee");
} else {
LogNewProvableQuery("Provable query was sent, standing by for the answer..");
provable_query("URL", "json(https://api.pro.coinbase.com/products/ETH-USD/ticker).price");
}
}`

`pragma solidity ^0.4.22;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";

contract ExampleContract is usingProvable {

string public ETHUSD;
event LogConstructorInitiated(string nextStep);
event LogPriceUpdated(string price);
event LogNewProvableQuery(string description);

function ExampleContract() payable {
LogConstructorInitiated("Constructor was initiated. Call 'updatePrice()' to send the Provable Query.");
}

function __callback(bytes32 myid, string result) {
if (msg.sender != provable_cbAddress()) revert();
ETHUSD = result;
LogPriceUpdated(result);
}

function updatePrice() payable {
if (provable_getPrice("URL") > this.balance) {
LogNewProvableQuery("Provable query was NOT sent, please add some ETH to cover for the query fee");
} else {
LogNewProvableQuery("Provable query was sent, standing by for the answer..");
provable_query("URL", "json(https://api.pro.coinbase.com/products/ETH-USD/ticker).price");
}
}This is the code and my question is :pragma solidity ^0.4.22;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";

contract ExampleContract is usingProvable {

string public ETHUSD;
event LogConstructorInitiated(string nextStep);
event LogPriceUpdated(string price);
event LogNewProvableQuery(string description);

function ExampleContract() payable {
LogConstructorInitiated("Constructor was initiated. Call 'updatePrice()' to send the Provable Query.");
}

function __callback(bytes32 myid, string result) {
if (msg.sender != provable_cbAddress()) revert();
ETHUSD = result;
LogPriceUpdated(result);
}

function updatePrice() payable {
if (provable_getPrice("URL") > this.balance) {
LogNewProvableQuery("Provable query was NOT sent, please add some ETH to cover for the query fee");
} else {
LogNewProvableQuery("Provable query was sent, standing by for the answer..");
provable_query("URL", "json(https://api.pro.coinbase.com/products/ETH-USD/ticker).price");
}
}`
This is the code and mY question is:

In the last line of the code i have a provable_query and it contains URL and URL data is [{"trade_id":103437884,"price":"2674.1","size":"0.12890079","time":"2021-04-28T11:19:29.475452Z","bid":"2673.78","ask":"2674.03","volume":"360649.21208837"} so as in the last i want fetch price into the blockchain.

"But my question is what if this Url contains 2 different prices like 1 price for USD and other price for EURO eg: {"trade_id":103437884,"price1":"2674.1","price2": "2222",size":"0.12890079","time":"2021-04-28T11:19:29.475452Z","bid":"2673.78","ask":"2674.03","volume":"360649.21208837"}

SO now my question is how can I fetch price 1 and price 2 from the above URL and if yes how can I fetch 2 prices from a single URL".

Thanks in advance

David Hauser
@kinggongzilla
hi
I'm very new to Provable and this is probably a big noob questions but, how much does it cost (approximately) to make a request to an API via Provable?
I looked at Chainlink and prices are around 0.1 LINK, which is more than 4 USD. That's insane
I looked at the pricing section in Provable and it says 0.01USD plus some other gas fees.
Could someone maybe explain how much one request would cost in total, approximately?
David Hauser
@kinggongzilla
We want to integrate it into an ethereum smart contract
Oraclize Support
@oraclize-support
Hi @kinggongzilla - the pricing info here: http://docs.provable.xyz/#pricing is correct, and as you can see that with the 0.01USD price you'll find that our fee is usually < 5% of the total price, once you factor gas into the equation. It's hard to answer your question more concretely however, because the gas price will depend on what you choose (in Gwei, & dependent on network conditions, though this has come down a bit recently thankfully) and how much computation your __callback function does. Since these are both at your discretion, giving you a quote is unfeasible.
gr33ngr33n
@gr33ngr33n

hi @oraclize-support I am new to Provable. I use provable_newRandomDSQuery function to generate random number. Tested both on Rinkeby and Ropsten. I encountered few problems.

  • on Rinkeby ... __callback function was never triggered
  • on Ropsten ... __callback function was triggered but always return the same __result

Any idea what is happening ?

Thank you so much guys in advanced! 🙏🏼

Sree
@bvinayakh_twitter
@oraclize-support I'm trying to execute the sample code provided by provable-things to get the current price of eth using coinbase endpoint
i'm trying to deploy and test on ropsten, however face gas estimation issue.
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
execution reverted
I face the above error while testing on remix-ide
Alex Sarco
@ASarco
Hi, does Provable work with BSC network?
Oraclize Support
@oraclize-support

@gr33ngr33n - do you have a query ID for your Ropsten query?

@bvinayakh - yes you can use Ropsten to test your smart-contracts with Provable. The gas estimation issue usually means the transaction will fail for some reason. Make sure in Remix you have the correct network selected and have connected to Metamask correctly, with an account that has adequate Ropsten ETH.

@ASarco - we are not yet integrated on BSC, but will note your demand.

gr33ngr33n
@gr33ngr33n

@oraclize-support thanks for the response! Yes.. I did logged the queryIds.. I tried 3 calls. Therefore, 3 queryIds:
0x6c3e90e34b476ac5b673b1dc1bb1fd9993acd0ade03c4bf2adfa78b57f994681
0x6fd5f7df667d6748f77ed3d34cbae2364c2f758cb6a8ba76cfd8ebf51f127663
0x8c3e79abc09a97580e3175c033513cde3c4fa355039f06d8b603803eec55d8da

I look forward to your feedback again Sir! Thank you!

Sree
@bvinayakh_twitter
@oraclize-support I have 4+ ropsten eth within my metamask wallet and account on which im trying to perform the integration with provable
Lukas Hönig
@lhoenig_gitlab
@oraclize-support I would love to use your service but my __callback never gets triggered, on Rinkeby, Ropsten or Goerli. The only way I can get it to work is using the Remix JavascriptVM Plugin, where the same code works flawless.. I'm using the API version 0.6 and this is all I'm doing:
function __callback(bytes32 _myid, string memory _result) public override {
    emit ProvableResultArrived(_result);
    result = _result;
}
function getRandom() public payable {
    bytes32 queryID = provable_query("WolframAlpha", "random number between 0 and 100");
    emit ProvableEventID(queryID);
}
Saul Upfal
@SaulUpfal_twitter
G'day, is it possible to to wrap a Quorum Blockchain Token with Binance Smart Chain, to enable exchange on Pancake swap? Thanks
PaoloPoliti
@PaoloPoliti
Hi, I'm using the following code in my project on Ropsten testnet but my __callback never gets triggered:
function __callback(bytes32 id, string memory result) override public {
    require(pendingQueries[id]);
    require(msg.sender == provable_cbAddress());
    state = parseInt(result);
    emit StateUpdated(result);
    pendingQueries[id] = false;
}

function updateState() internal {
    if (provable_getPrice("URL") > address(this).balance) {
        emit NewProvableQuery("Provable query was NOT sent, please add some ETH to cover for the query fee");
    } else {
        emit NewProvableQuery("Provable query was sent, waiting for the answer");
        bytes32 queryId = provable_query("URL", "json(http://killer97.altervista.org/1.html).Value");
        pendingQueries[queryId] = true;
    }
}
Oraclize Support
@oraclize-support
@SaulUpfal_twitter for pNetwork-related questions please refer to the official telegram group: https://t.me/pNetworkDefi
Dengcheng Hu
@dengchengH
Hi, I'm using the code in Quick Start part on Remix, but when I compile it, there is always some wrong with “Uncaught JavaScript exception: RangeError: Maximum call stack size exceeded”. Is there any help can provide? Thanks a lot!
Lukas Hönig
@lhoenig_gitlab
@oraclize-support I've gone through some contract calls from the last days and they all failed like mine and @PaoloPoliti, they never got a callback and the query IDs they return are not visible in your query status tool, no matter the test network. Please, check whats up there..