getOperation(factHash)
Feature
Get specific operation information from facthash.
Parameters
string
factHash
data
of SuccessResponse
object
operation Information
example
// Note: an asynchronous request.
const operationInfo = async () => {
const facthash = "2QiJUmiANjVUmfsiHuSysgpSAnthZf5obiwcpFpk7Qob";
const info = await mitum.operation.getOperation(facthash);
console.log(info.data);
};
operationInfo();
// output
{
_hint: 'mitum-currency-operation-value-v0.0.1',
hash: '2QiJUmiANjVUmfsiHuSysgpSAnthZf5obiwcpFpk7Qob',
operation: {
hash: 'HuQpL2Y14U5SALqBM9ebNaGnoSMJF1h8yYnGAuWB8mrY',
fact: [Object],
signs: null,
_hint: 'currency-genesis-network-policy-v0.0.1'
},
height: 0,
confirmed_at: '2023-09-22T06:28:11.399Z',
reason: '',
in_state: true,
index: 0
}
Last updated