import * as assert from '../../assert.js';
function read_witness_api(client) {
    return async (wid) => {
        assert.is_hash(wid);
        const url = `${client.host}/api/witness/${wid}`;
        return client.fetcher({ url });
    };
}
export default function (client) {
    return {
        read: read_witness_api(client)
    };
}
