The path to the file to delete.
Optional
options: { Optional options object.
Optional
wasSet to true if the file was originally signed in order for the corresponding signature file to also be deleted.
Resolves when the file has been removed or rejects with an error.
Get the app storage bucket URL
the gaia hub URL
the app private key used to generate the app address
That resolves to the URL of the app index file or rejects if it fails
Retrieves the specified file from the app's data store.
the path to the file to read
Optional
options: GetFileOptionsa [[GetFileOptions]] object
that resolves to the raw data in the file or rejects with an error
Get the URL for reading a file from an app's data store.
the path to the file to read
Optional
options: GetFileUrlOptionsthat resolves to the URL or rejects with an error
Fetch the public read URL of a user file for the specified app.
the path to the file to read
The Blockstack ID of the user to look up
The app origin
Optional
zoneFileLookupURL: stringThe URL to use for zonefile lookup. If falsey, this will use the blockstack.js's [[getNameInfo]] function instead.
that resolves to the public read URL of the file or rejects with an error
Optional
privateKey: stringOptional
username: stringOptional
zoneFileLookupURL: stringList the set of files in this application's Gaia storage bucket.
a callback to invoke on each named file that
returns true
to continue the listing operation or false
to end it.
If the call is ended early by the callback, the last file is excluded.
If an error occurs the entire call is rejected.
that resolves to the number of files listed
Stores the data provided in the app's data store to the file specified.
the path to store the data in
the data to store in the file
Optional
options: PutFileOptionsa [[PutFileOptions]] object
that resolves if the operation succeed and rejects if it failed
Private
setPrivate
These two functions are app-specific connections to gaia hub, they read the user data object for information on setting up a hub connection, and store the hub config to localstorage
that resolves to the new gaia hub connection
Generated using TypeDoc
Deletes the specified file from the app's data store.