Categories
Cryptocurrency Development Ethereum

Retrieve EOS LINK tokens sent by mistake to Ledger Nano S

How to retrieve my LINK Tokens sent by mistake to my Ledger Nano S and transfer them to My Ether Wallet. I cannot see them in my Ledger Live, but I found the transaction in my Etherscan.io Thank you.

Categories
Cryptocurrency Development Ethereum

Errors generating certificates in fabricsamples 2.0

When I am generating certificates in Fabricsamples 2.0 it’s showing errors like: panic: Error reading configuration: While parsing config: yaml: line 217: mapping values are not allowed in this context [recovered] panic: Error reading configuration: While parsing config: yaml: line 217: mapping values are not allowed in this context

Categories
Cryptocurrency Development Ethereum

How get private key in private network?

I launched a private RPC Blockchain network and connected through another computer to this network. The connection is successful. How can I get a private key(with Python) if the file is on another computer on this network?

Categories
Cryptocurrency Development Ethereum

Calling function on ERC20 contract through staticcall gives wrong result

I’ve made two functions to interact with a local ERC20 token. Here they are: pragma solidity ^0.5.0; contract GardenTestContract { function getBalanceOf(address _address) public view returns (bool, uint, uint, address) { address sender = msg.sender; (bool _success, bytes memory data) = _address.staticcall(abi.encode(bytes4(keccak256(‘balanceOf(address)’)), (sender))); (uint amount) = abi.decode(data, (uint)); return (_success, data.length, amount, sender); } function […]

Categories
Bitcoin Cryptocurrency Development

How to get a description (comment) of the transaction?

https://blockchain.info/address/6de66adaa2cad5e85647e4e936f4e3708a92f07d?format=json How can I get a comment on the translation from here?

Categories
Cryptocurrency Development Ethereum

Sending money through a smart contract

I’m trying to create a smart contract that would send funds from one wallet to another by taking values ​​from an array that I fill. But it does not send values ​​unless I specify them in msg.value. How can I send money by property id without user participation? pragma solidity ^0.4.18; contract property { uint256 […]

Categories
Cryptocurrency Development Ethereum

TypeError: “send” and “transfer” are only available for objects of type “address payable”, not “address”. owner.transfer(msg.value); ^————^

pragma solidity ^0.5.0; /** * The Hotel contract does this and that… */ contract Hotel { struct Room { uint id; string name; string hotel_name; uint price; string status; } // mapping acts as a associative array of key => value , here key is unsigned // int and value is structure mapping (uint => […]

Categories
Cryptocurrency Development Ethereum

Own private key of smart contract to sign a line of text

For my project it is necessary for smart contract to sign a message (for example, EC-signature) I have not found a way to generate a pair of public and private keys inside the contract so that the private key remains invisible to anyone, and smart contract could sign a line of text with it. Maybe […]

Categories
Cryptocurrency Development Ethereum

How can meta mask send transactions without knowing my private key?

I have sent some test ether to my other account using meta mask chrome extension. From what I know, you need to provide your private key to the wallet in order to sign your transaction. Because unsigned transactions are not valid. But meta mask managed to send the transaction without any information but my public […]

Categories
Cryptocurrency Development Ethereum

TypeError: dappTokenSaleInstance.tokenprice

I am trying to get the token price,but i am unable to do that in Tutorial of dapp University. App.contracts.DappTokenSale.deployed().then(function(instance){ dappTokenSaleInstance = instance; console.log(dappTokenSaleInstance); return dappTokenSaleInstance.tokenprice(); }).then(function(tokenPrice){ App.tokenPrice = tokenPrice; console.log(‘tokenPrice ‘ + tokenPrice.toNumber()); $(‘.token-price’).html(web3.fromWei(App.tokenPrice,”ether”).toNumber()); })