Skip to content

Unable to use RPC getters to retrieve IPFS content #250

@rmlearney-digicatapult

Description

@rmlearney-digicatapult

Have looked for examples and code snippets but can't figure out how to programmatically retrieve data from IPFS using .get methods. Have had to revert to HTTP fetch with node-fetch or axios instead.

E.g.

import { create } from 'kubo-rpc-client'
var { cid } = await client.add('Hello world!')
// undefined
await client.get( cid  )
// Object [AsyncGenerator] {}

These methods would seem to be in the RPC but am I just using them incorrectly?

Metadata

Metadata

Assignees

Labels

P2Medium: Good to have, but can wait until someone steps updif/trivialCan be confidently tackled by newcomersgood first issueGood issue for new contributorshelp wantedSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing featurekind/supportThis is a question or a request for supportstatus/readyReady to be workedtopic/docsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions