Is the first parameter the hash of the whole block or just header? (is
transaction tree included)
The first parameter is the hash of the block header, not the entire block. The header includes the root of the transaction trie, but the trie itself is stored in the main part of the block, outside of the header.
More formally, the first parameter is the hash of the truncated block header, which includes neither the nonce or mix-hash components that a complete block header normally has.
Where does the seed hash come from? Is it deterministic? Is every
miner receiving the same seed hash?
- It's based on the current block number and which epoch we're in. (An epoch is 30,000 blocks.) This is the same for everyone mining the same block, and so...
- ...yes, it's deterministic, so...
Note that even though seed generation is deterministic for a given block, the DAG is generated from this seed using a pseudorandomly generated cache (using the MemoHash algorithm). Which means the DAG will (almost certainly) be different for every miner.