If you receive cryptocurrency in a peer-to-peer transaction or some other transaction not facilitated by a cryptocurrency exchange, the fair market value of the cryptocurrency is determined as of the date and time the transaction is recorded on the distributed ledger, or would have been recorded on the ledger if it had been an on-chain transaction.