This question already has an answer here:

I got the message : Contract mined! address: 0x72b878799d98131bca157ccaccfcd386023147e9 transactionHash: 0x66b9436240103e79c07492fe2479d97eeaa6c45779d00e1fc126285072eba327

for example, and there is a function named test() in the contract named foocontract. how to call test() according to the contract address in geth console?

marked as duplicate by Afr Apr 10 '17 at 12:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.