I have created a Smart contract in truffle and deployed it in Ethereum private network. I am running MetaCoin box which I download from truffle official website.
I started my network using the following command:
geth --datadir ./myDataDir --networkid 1234 --rpc --rpcport 8546 --rpcapi "eth,net,web3"
Now I have entered the geth console but whenever I run any commands related to MetaCoin, I get error telling it is not defined:
> MetaCoin.at(<address>).address
ReferenceError: ‘MetaCoin’ is not defined