mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-14 22:08:39 +01:00
6 lines
206 B
JavaScript
6 lines
206 B
JavaScript
|
import multihashes from 'multihashes'
|
||
|
|
||
|
export async function ipfsPut(content) {
|
||
|
const dagNode = await window.ipfs.object.put(Buffer.from(content))
|
||
|
return multihashes.toB58String(dagNode.multihash)
|
||
|
}
|