Bitcoin Forum
July 12, 2024, 10:23:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / How do websites like EtherDelta and Idex.Market sell third party ERC20 tokens on: May 01, 2018, 06:50:11 AM
Do they purchase these tokens in a limited quantity and then sell it, or the tokens are available to buy once they have been published on etherscan?

I am confused because how are they able to transfer these tokens from User to User like a c2c transaction? Don't they need ABI and key of owner to interact with the tokens?
2  Alternate cryptocurrencies / Altcoin Discussion / ERC20 Tokens doubts on: April 30, 2018, 02:30:09 PM
I have few doubts regarding ERC20 tokens

1) Any good apis for ICO price ticker? Like idex.market https://prnt.sc/jbz4v5
2) How does idex.market able to sell token to users? Do they buy the ICO first to their wallet address?
3) Lets say you create an app which reward user with bounty. Example if user vote something, he will give you token. I have to write the vote logic in solidity? Or I can write this in php / nodejs and just write token transfer code in solidity.
3  Alternate cryptocurrencies / Service Discussion (Altcoins) / Re: ICO Transfer without MetaMask plugin Web3js on: April 26, 2018, 01:05:26 PM
You dont have to use Metamask but you will need to sign all your requests or set a defaultAccount.

What is the exact error you are receiving?


I am getting the following error  Invalid JSON RPC response: ""

Here is my code.

Code:
<script>


var Web3 = require('web3');

var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/875Cngzi6OKdDw19aX8H'));


console.log(web3);

 var OmsCoin = *removed abi*


console.log(OmsCoin);

var address = document.getElementById('address');
var transfer = document.getElementById('transfer');
var disp = document.getElementById('disp');
var tokenAmount = document.getElementById('tokenAmount');

var account = '0x0072c66801e215BffcCd7Aa0A3306dFbb5D05A1B';

var account1 = '0x80198f6f9821775541098b9fC872937e594fC45f';

var decimals;
var token;

    decimals = OmsCoin.decimals.call(function(error,res){
     decimals = res.toNumber();
    //console.log(decimals);
     });


OmsCoin.balanceOf(account, function(error,res){
        token = res.toNumber() / 10**decimals;
        disp.innerHTML= 'Your Token Balance ' + token;
    });
console.log(token);



transfer.addEventListener('click',function(){

/*
OmsCoin.transfer(account1, tokenAmount.value * 10 **decimals, {from:account},function(error,result)
        {
            if(!error)
                  {
                    console.log(tx2 = result);
                    tx2 = result;
                   
                  }
        else
            {
              console.log(error);
            }
        });*/

OmsCoin.transfer(account1, tokenAmount.value * 10 **decimals, {from:account},function(error,result)
        {
            if(!error)
                  {
                    console.log(result);
                   
                  }
        else
            {
              console.log(error.toString());
            }
        });


});


</script>
4  Alternate cryptocurrencies / Service Discussion (Altcoins) / Re: ICO Transfer without MetaMask plugin Web3js on: April 26, 2018, 10:55:32 AM
Are you using Infura?

If not you can run your local node and specify your chain using --chain ropsten

I am using infura ropsten and want to use this not local node at the moment. But I do not want to use MetaMask plugin. Is this possible? I am getting provider not found error.
5  Alternate cryptocurrencies / Service Discussion (Altcoins) / ICO Transfer without MetaMask plugin Web3js on: April 26, 2018, 08:09:03 AM
I want to transfer ICO tokens in test environment from one ETH account to another using Web3js. But it gives service provider not found issue.

It works when I use a local node but not when I use ropsten network.
6  Alternate cryptocurrencies / Altcoin Discussion / Re: Ethereum ICO Purchase without MetaMask? on: April 26, 2018, 07:58:07 AM
So I managed to create ICO on ropsten testnet. But I have few difficulties

1) I want to create a webpage where users can buy my ICO. But how to do this without using MetaMask plugin? I want such that user can send me Paypal, Visa, ETH in exchange for ICO Tokens.

2) If I want to launch my ICO on live server, do I need to create my own Node or just use Ethereum mainnet? What are the benefits of using own node vs using ethereum main net or vice versa?

Really depends on how you want to implement your solution. How most ICOs does this is they let people give them money and pay upfront. So for this you can use API from etherscan to get Ethereum transactions, integrate Paypal and Visa. Then you will want to store somewhere in the database the address investors want to receive tokens in as well as how many tokens they will recieve. After the end of token sale you can simply take that data (can write simple script) to send out the tokens.

With node you don't have to trust others but you trust the data you have with your own node. Honestly if you are looking to do any more advanced features with the network I would advise you to use your node because you can do many things with it.


Thank you for the advice much appreciated, some people seem to have completely wrongly assumed my goals I am trying to get into ICO development for clients still a newbie which is why I'm learning from experts like you people.

Anyways lets say I do not want to transfer Tokens from one account to another, but currently I am getting serviceProvider not found issue and have to install MetaMask plugin.
Is using MetaMask plugin the only way to transfer Tokens via our ICO website?
7  Alternate cryptocurrencies / Altcoin Discussion / Ethereum ICO Purchase without MetaMask? on: April 25, 2018, 01:41:51 PM
So I managed to create ICO on ropsten testnet. But I have few difficulties

1) I want to create a webpage where users can buy my ICO. But how to do this without using MetaMask plugin? I want such that user can send me Paypal, Visa, ETH in exchange for ICO Tokens.

2) If I want to launch my ICO on live server, do I need to create my own Node or just use Ethereum mainnet? What are the benefits of using own node vs using ethereum main net or vice versa?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!