Can I use other tokens in loom network (sidechains)? How does loom network handles it?

How to receive other tokens in the smart contract deployed in loom and keep it in escrow?, this is the code. pragma solidity ^0.5.0; //import ERC20 functionality … contract Example { ERC20 public token; //@param _token the address of the DAI smart contract constructor(ERC20 _token) public { token = ERC20(_token); } function () external payable…

How do i print bitcoin transactions from a mining pool in php

i would like to print out bitcoin transactions from a specific bitcoin mining pool not just a bitcoin address using php and a blockchain api or any other api here’s all i have <?php $address = “1CQG1JuVsLsqPer8Vjf5WfD7KKbCxRzprL”; $url = “https://blockchain.info/address/”.$address.”?format=json&offset=0″; $json = json_decode(file_get_contents($url), true); $totalTxs = $json[“n_tx”]; echo “Total transaction : $totalTxs”; for($ex=0;$ex<$totalTxs;$ex+=50){ //$address =…

msg.sender not increasing the balance

I am trying to execute the following code obtained from[Solidity Tutorial][1] pragma solidity 0.5.4; contract ERC20Token { string name; mapping(address => uint256) public balances; function mint() payable public { balances[msg.sender] += msg.value;//use tx.origin, } } contract MyContract { address public token; address payable wallet; constructor(address payable _wallet, address _token) public { wallet = _wallet; token…