async createEntity(ctx, entityNumber, entityType, data) {
const entity = {
data,
};
await ctx.stub.putState(entityType + entityNumber, Buffer.from(JSON.stringify(entity)));
return ctx.stub.getTxID();
}
There is such code in chaincode, in response I get for example
612d6a6b5919fbc511e7a7b691cd349eb932f4e8d84ab9394885d3220f2e169a
And having written down some information there, the question is, how do I get this data back using the received txId?