# Use hexadecimal text or plain blob (nat8 array) as parameter?

**URL:** <https://forum.dfinity.org/t/use-hexadecimal-text-or-plain-blob-nat8-array-as-parameter/39676>\
**Category:** Developers\
**Created:** [January 4, 2025, 12:17am UTC](https://forum.dfinity.org/t/use-hexadecimal-text-or-plain-blob-nat8-array-as-parameter/39676 "2025-01-04T00:17:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kayicp](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kayicp/32/36679_2.png) [@kayicp](https://forum.dfinity.org/u/kayicp)\
**Post date:** [January 4, 2025, 12:17am UTC](https://forum.dfinity.org/t/use-hexadecimal-text-or-plain-blob-nat8-array-as-parameter/39676/1 "2025-01-04T00:17:27Z")

</div>

i have a map of sha256 blob as key and object as value, should the endpoint to query this map accept Blob as parameter  
`public shared query func get_object(hashkey: Blob)`

…or Hexadecimal text as parameter?  
`public shared query func get_object(hexkey: Text)`  
if this one, what’s a good representation of hexadecimal text should i follow? should it start with 0x? or should i just let a library to handle it? if so, which is the best library/module?

when should i pick one over another?
