Usage
Returns
Parameters
paymentInstructionId (required)
- Type:
string
cid (required)
- Type:
string
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pinata SDK x402.cids.remove detaches a private IPFS CID from an x402 payment instruction so it no longer requires payment to access.
import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const result = await pinata.x402.removeCid(
"01234567-89ab-cdef-0123-456789abcdef",
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4"
);
type CidRemoveResponse = {
data: {};
};
stringconst result = await pinata.x402.removeCid(
"01234567-89ab-cdef-0123-456789abcdef",
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4"
);
stringconst result = await pinata.x402.removeCid(
"01234567-89ab-cdef-0123-456789abcdef",
"bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4"
);