Experimental
Fetch a publication by either its publication id or transaction hash.
This signature supports React Suspense.
const { data } = usePublication({
forId: '0x04-0x0b',
suspense: true,
});
console.log(data.id);
This API can change without notice
Fetch a publication by either its publication id or transaction hash.