truffle-contract for contract abstraction.
const myContract = TruffleContract(MyContractArtifact); myContract.setProvider(web3.currentProvider);
I'm using Infura as the web3 provider so need to sign transactions before sending them. If I want to use contract functions in the
data field, can this be done with the
myContract instance? I understand it can be done with
web3.eth.Contract based on this answer, so if it is actually possible, is it more or less the same technique, or what would I need to do?
Edit* I have given up on truffle-contract and using
Edi2* Changed title as I was wrong to say
sendTransaction() - the method I require is