Attribute that shows block name

How do i make an attribute that will show the block name. I assume I use the attdef command and use a field but which one?