Jun 23 2018
10:02 PM
- last edited on
May 26 2021
01:24 PM
by
TechCommunityAP
Jun 23 2018
10:02 PM
- last edited on
May 26 2021
01:24 PM
by
TechCommunityAP
Has anybody done a payment on ABC Workbench?
I mean, <address>.transfer(amount)
When trying a transfer, I get this error message:
This is taking longer than expected.
Questions:
The code I'm using is:
address public Gambler; address public Bookmaker; function PlaceBet(string score, uint256 amount) public payable { if (amount == 0) { revert(); } if (msg.sender.balance < amount) { revert(); } if (msg.sender == Bookmaker) { revert(); } BetScore = score; BetAmount = amount; State = StateType.BetPlaced; Gambler = msg.sender; // THESE BOTH FAIL // Transfer amount to the Smart Contract account address(this).transfer(amount); // Transfer amount to the Bookmaker Bookmaker.transfer(amount); ContractUpdated("PlaceBet"); }
Sep 15 2018 08:20 PM
Did you figure out how to do? I could not connect via metamask
Sep 15 2018 08:44 PM
Nov 04 2020 03:13 PM
@Stefano TempestaWhen using the istanbul consensus default setup for the azure blockchain service... (poa) it should still have access to blocks.. or "eth" even though deploying contracts is 0 gas.. What if in the use case that an end user needs to purchase tokens on this network? I should be able to send them 'eth' and then they can choose which tokens on the chain they want to purchase.. via smart contracts etc. Right now as owner of the chain I cannot do that. The member has 0 'eth' and the blocks that are minted go absolutely no where in the default setup. Why is that???
Nov 04 2020 06:15 PM
Hi @AaronSnobel from what I know, this version of Ethereum has been deprecated by Microsoft and no longer available as an option in Azure. Also Azure Blockchain Workbench has moved away from Ethereum PoS, so at this point making ETH payments in Azure Blockchain doesn't seem to be an option at all.
I guess the overall rationale is that crypto payments on a private blockchain network is not a requirement for businesses, which is the target audience for Azure Blockchain.
Nov 04 2020 08:41 PM
@Stefano TempestaThanks! But that doesn't really answer my question here. The problem is not the workbench but the service itself. The blockchain has its own currency if you will I will call it "ETH" in quotes. That currency is the base value of the private chain.. without it all users are supposed to do is receive tokens.. Or other biz use cases.. But shouldnt the chain be able to provide base currency??! I mean isn't that what the blockchain was first designed for? BTC much? For quorum I under the poa/pow concepts quite well.. but still it doesnt make any sense for their to be transaction nodes minting blocks unless those blocks are put to use.. like traded back n forth in a transactional sense. Maybe my take on the istanbul consensus and quorum is warped...or the service as provided in its default config is not at all on par with the expectations of the users?
Nov 04 2020 08:58 PM
...To be clear the question by the op doesn't make sense.. It is not the workbench that is the issue here but the blockchain service . the one in preview.. not deprecated. Utilizing the istanbul consensus...the default genesis block does not preallocate accounts nor does it offer the ability. So if you hook metamask up tot he secure rpc endpoint all you'll ever see is 0 eth in that wallet/account. In a poa chain that might not be necessary but I still see a point where access to those minted blocks would be needed. Please enlighten me if you truly understand my problem here...
Nov 04 2020 08:59 PM
Nov 05 2020 12:25 AM
Nov 06 2020 07:29 PM
@AaronSnobel I think you nailed the problem here. Azure Blockchain is not designed for cryptocurrency transactions. I don't know why the Microsoft product group took this decision, I can only think that they want to avoid resource intensive mining.
I wish someone from Microsoft could read this thread and answer...