An HTTP fetch library that signs requests using a Decentraland Identity, preserving the native Fetch API. Version 2.0.1 runs on Node >=12 and browsers. It simplifies authenticated communication with Decentraland services by automatically adding signed headers (including optional metadata) to each request. Key differentiators: works with standard `fetch`, supports generator functions and factory injection for custom fetch implementations, and includes a CLI tool. Built on top of `@dcl/crypto` for identity management.
npm install decentraland-crypto-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the signed fetch with an ephemeral identity and metadata.
Pass an Identity object obtained from @dcl/crypto instead of a string.
Ensure URLs use http or https scheme.
Use `import fetch from 'decentraland-crypto-fetch'` instead of `import { fetch } from 'decentraland-crypto-fetch'` (for named export, it's now default).Use `const fetch = require('decentraland-crypto-fetch').default` or switch to ES modules.Install @dcl/crypto: `npm install @dcl/crypto`.