Skip to content
Ilya Kapitonau edited this page Aug 5, 2021 · 2 revisions

Env::DocAddBlob

void DocAddBlob(const char* szID, const void* pBlob, uint32_t nBlob);

Emits JSON blob field with name szID, the blob is binary data, the field is hex-encoded string

Parameters

  • szID : 0-terminated string, the name of the field
  • pBlob : pointer to the blob
  • nBlob : the size of blob

Return value

  • none

Notes

  • none

Example

ContractID cid = GetContractID();
DocAddBlob("my_cid", &cid, sizeof(cid));

result

 "my_cid" : "42dabc5....ee00s7"
Clone this wiki locally