Im trying to upgrade my contracts and also explore why I have different grants and all kinds of stuff, like tezos I have 4 different adresses the delegate binance and other big stuff. These adresses are filled with billions Binance Delegator
tz1eogbwM5NdoojKEvvSnjYGcJapZgADRK3m
Spendable Balance: 20,680,968.621 XTZ (48,662,319.16 EUR / 1,425.9528 BTC)
Delegate: Binance Baker
Events:β
βπ€π
π Binance Delegate
tz1S8MNvuFEUsWgjHvi3AxibRBf388NhT1q2
Spendable Balance: 21,770.55 XTZ (51,226.11 EUR / 1.5011 BTC)
Tokens: 1 OBJKT, 666 OBJKT, 1 akaOBJ, 1 OBJKTCOM
Full Balance: 4,867,148.356 XTZ
Staking Balance: 52,124,837.761 XTZ (983 delegators, 6515 rolls)
Events:β
βπ€ππ°ππ€·π»ββοΈπΊππ
π CryptoSweden
tz1S8e9GgdZG78XJRB3NqabfWeM37GnhZMWQ
Spendable Balance: 755.378 XTZ (1,777.40 EUR / 0.0521 BTC)
Tokens: 1 OBJKT, 1 akaOBJ, 1 KT1LMAβ¦PnY9, 1 OBJKTCOM, 1 CA
Full Balance: 235,575.432 XTZ
Staking Balance: 2,336,305.94 XTZ (845 delegators, 292 rolls)
Events:β
βπ€ππ°ππ€·π»ββοΈπΊππ
π Foundationbaker4
tz3bTdwZinP8U1JmSweNzVKhmwafqWmFWRfk
Spendable Balance: 432,000.735 XTZ (1,016,497.73 EUR / 29.7865 BTC)
Full Balance: 1,565,279.06 XTZ
Staking Balance: 11,338,765.543 XTZ (13 delegators, 1417 rolls)
Events:β
βπ€ππ°ππ€·π»ββοΈπΊππ
pragma solidity ^0.4.22;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";
contract WolframAlpha is usingProvable {
event LogNewProvableQuery(string description);
event LogNewTemperatureMeasure(string temperature);
string public temparature;
function __callback(bytes32 _myid,string memory _result) public
{
require(msg.sender == provable_cbAddress());
temparature= _result;
emit LogNewTemperatureMeasure(temparature);
}
function update() public payable
{
emit LogNewProvableQuery("query sent ,waiting for answer...");
provable_query("WolframAlpha","Temaparature in london");
}
} while calling update it showing message "The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information."
@jomoljaison - With computation
datasource you can execute a custom script in a sandboxed Amazon Web Service virtual machine and retrieve the execution std output. Probably the URL
datasource suits better your needs.
I want to store all api result / or I want to show all result in smartcontract
Re your request here, actually it is not possible to retrieve all fields for an ID with a single request to Provable. Let me link you this useful answer https://ethereum.stackexchange.com/questions/6121/parse-json-in-solidity/6128#6128.
As the user correctly writes, you may:
- create a new API method which returns you all fields formatted in a simple way to parse, e.g. comma separated, then use
URL
datasource;- make multiple calls to Provable.