How can I turn this into a human readable output?

I have this buy function but the output gives me a transaction Nr. or whatever this is async function buy() { var a = document.getElementById(“amount”).value; var accounts= await web3.eth.getAccounts(); console.log(accounts); var contract = new web3.eth.Contract(abi,address); contract.methods.buy(a, “0x0000000000000000000000000000000000000000”).send( {from:accounts[0]}, function(error, approve){ if(error){ console.log(error) } else if(approve){ console.log(“you bought :” + approve) } }); }; And this…

Is there a way to test Blockchain.info APIs?

I’m trying to set up Blockchain.info web APIs to notify me when I receive a BTC payment: https://www.blockchain.com/api/api_receive So say, if I generate a receiving address as such: https://api.blockchain.info/v2/receive?xpub=<my_xpub>&callback=<callback_url>&key=<my_key> Can I somehow test how my callback_url will be called? PS. Sorry, I’m new to this. Before when I was dealing with a fiat currency, PayPal…

Web3.py Could not transact with/call contract function, is contract deployed correctly and chain synced?

I am trying to call a contract function deployed in Ganache. I am pretty sure the contract is deployed because I can transact() and work with other functions. But when I call() it, I get this error: Could not transact with/call contract function, is contract deployed correctly and chain synced? this is may function call:…

Oraclize ( provable) updates the value only one time

I’m trying to write a smart contract that gives me the current timestamp. The very important part is that i want this to happen locally, not on test networks. After some research, i installed ethereum-bridge and with truffle and some example, I managed to write this: pragma solidity ^0.5.10; import “./usingOraclize.sol”; contract TimeMachine is usingProvable…

Why in solidity 0.6 these functions are no more free?

Try this code pragma solidity >=0.5.0 <0.6.0; contract test05 { address payable public admin = msg.sender; function() payable external {} function getBalance() public view returns (uint) { return address(this).balance; } } getBalance is callable for free. Event reading admin address is free. But try this pragma solidity >=0.6.0 <0.7.0; contract test06 { address payable public…