What should the parent_block_identifier be for genesis block?

I’ve tried everything I can think of for the parent_block_identifier for the genesis block.
I’ve tried leaving it off completely, or having it be an empty json set “{}”. Or being all zeros for the hash or empty string for the hash.
The only thing I found that works is:
{
“index”: 0,
“hash”: “0000000000000000000000000000000000000000000000000000000000000000”
}

But that doesn’t feel right. Maybe it is.

Hey, @fireduck! In the “common mistakes” section of our website, we explain that you should use the genesis BlockIdentifier for both block_identifier and parent_block_identifier (you can also find a few examples of what to and not to do):

Apologize for any confusion here! I was just rereading the wording in this section and it is :face_vomiting:.

Thanks, somehow I didn’t even read that section. Very helpful.

1 Like

Awesome, rosetta-cli check:data is now running and seems to be succeeding.

2 Likes