truffle

Send signed transactions to Ropsten or Truffle develop network with Trezor (Hardware Wallet)

白昼怎懂夜的黑 提交于 2019-12-03 10:19:13
Im trying to integrate web3js with Trezor in a truffle dev network or using ropsten test network . The idea is to sign the transactions using the hardware wallet and then send a raw transaction using web3js Im getting that we dont have balance to make the transaction, probably because web3js isnt taking one of the 10 truffle accounts and is using the trezor address that isnt in my local network .. On ropsten i have some ethers and i get "invalid address" Is there a way to send a signed transactions (with trezor) using web3js into a truffle develop network? i mean, is there a way to include the

Different ways to invoke contract method

杀马特。学长 韩版系。学妹 提交于 2019-12-02 08:59:19
I have one contract with method name as getValues().From Dapp I am invoking contract method as 'contractCAt.getValues.call(function(error,result){...})' this works fine and by using 'contractCAt.getValues(function(error,result){...})' this syntax also works fine.I didn't get any difference between those two ways to invoke contract method.So could anyone help me to give idea about those syntax. See the web3j documentation : contractCAt.getValues.call() is run locally and will not alter the state of your contract on the blockchain. Does not consume any ether. contractCAt.getValues