The cost basis is what you paid for it. It sounds like you paid zero so, yes, the cost basis is zero. However, if this was a transfer from your friend then their cost basis transfers. So you can enter what they paid for the crypto in as the cost basis. You just need to get some kind of proof from them of what they paid.
@tombk