UNPKG

@axiom-crypto/tools

Version:

Useful data, field, and byte manipulation tools for Axiom.

12 lines (11 loc) 469 B
import { IpfsClient, IpfsResult } from "./ipfsClient"; export declare class PinataIpfsClient extends IpfsClient { private pinataJwt; private dedicatedGatewayUrl?; constructor(pinataJwt: string | undefined, dedicatedGatewayUrl?: string); private getUrl; getSize(hashOrCid: string): Promise<IpfsResult>; read(hashOrCid: string): Promise<IpfsResult>; pin(data: string): Promise<IpfsResult>; unpin(hashOrCid: string): Promise<IpfsResult>; }