gatewayUrlToHash
Converts a gateway url to an ipfsHash.
Usage
example.ts
import { mintclub } from 'mint.club-v2-sdk'
const ipfsHash = mintclub.ipfs.gatewayUrlToHash('https://cf.ipfs.com/ipfs/somehashvalue')
Return Value
Promise<IpfsHashUrl>
Returns a valid IPFS hash url ipfs://{somehashvalue}
.
Parameters
url
- Type:
HttpUrl
A valid ipfs gateway url.
const ipfsHash = mintclub.ipfs.gatewayUrlToHash('https://cf.ipfs.com/ipfs/somehashvalue')