Get ID of block placed by player in server side script?

I assume this is from the community-ran bedrock(dawt)dev website? I recommend checking their Wiki / Guides which is also updated by the community.