This function uploads the grant file to IPFS through the relayer's upload endpoint.
The returned URL can be stored on-chain as part of the permission grant, allowing
anyone to retrieve the detailed permission parameters later.
Throws
When the upload fails or relayer is unavailable
Example
constgrantFile = createGrantFile(params);
try { constipfsUrl = awaitstoreGrantFile(grantFile, 'https://relayer.vana.com'); console.log(`Grant file stored at: ${ipfsUrl}`); // ipfsUrl: "ipfs://QmHash123..." } catch (error) { console.error('Failed to store grant file:', error); }
Stores a grant file in IPFS via the relayer service.