What is the equivalent of (in Web3Js)
token = web3.eth.contract(erc20abi).at(tokenAddress);
I have the erc20abi and the contract address, i want to perform transfer from one address to another.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
in Web3j we use :
YourSmartContract contract = YourSmartContract.load("0x<address>", web3j, credentials, GAS_PRICE, GAS_LIMIT);
of course we don't provide Abi as argument since the YourSmartContract is a warper class for your contract in which web3j has already the ABI defined :
static final String BINARY = "606060405234610000575...…….."