---
title: "Martin Blanco (@kaptincho) | Hashnode"
description: "Martin Blanco (@kaptincho) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@kaptincho"
---

@kaptincho

# Martin Blanco

@kaptincho · Joined February 2018

## Comments

[I would like the tokens to be distributed at the end of the ico, how can we do this?](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9f1e750430f87244d401be)

Comment · Article · Mar 6, 2018 · 1 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[that is not written in the contract code, you must change the status of the contract manually by calling the function: "setCrowdsaleStage" to 1, using web3js and using owner account in metamask](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5a9f1d1a0430f87244d401b3)

Reply · Article · Mar 6, 2018 · 1 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[I was looking and analyzing, to see the tokens you must make the query with the api webjs of ethereum making the call with your JSON ABI contract. Load webjs api on html file first: <script src="web3.min.js"></script> then execute this JS example: var web3 = new Web3(new Web3.providers.HttpProvider("http://RPCBlockchainIP:RPCBlockchainPort")); var erc20Abi = \[Your JSON ABI Contract\]; var tokenContract = web3.eth.contract(erc20Abi).at("Your Contract Token Address"); var tokenBalance = tokenContract.balanceOf.call("Your Account Address to Test"); console.log(tokenBalance);](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a998fd3e96b069606051b35#reply-5a9e9ed4e96b0696060537e9)

Reply · Article · Mar 6, 2018 · 1 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[Only eth of the pre-ico go directly to the account, you need finish the ico to see the rest.](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a9644ab0430f87244d3cacd#reply-5a9999b4e96b069606051b6b)

Reply · Article · Mar 2, 2018 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[finish() call need 3 parameter address: "teamFund, ecosystemFund, bountyFund" function finish(address \_teamFund, address \_ecosystemFund, address \_bountyFund) public onlyOwner {](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a8dba55dbacfbab306e6f77#reply-5a99990ee96b069606051b65)

Reply · Article · Mar 2, 2018 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[Now... Once the ico is finished, how can I see the balance of tokens that have been returned to the addresses that have participated? web3.eth.getBalance(accounts\[0\]); Shows me the eth balance, not the token balance.](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a998fd3e96b069606051b35)

Comment · Article · Mar 2, 2018 · 2 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[my mistake was installing the latest version of zeppelin-solidity](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5a95033b90413cf129d26bad#reply-5a95059990413cf129d26bc8)

Reply · Article · Feb 27, 2018 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)
