Uploading a signed profile.json to the Blockstack Gaia hub

@jude are the ‘url_prefix’ and ‘token’ values required for the Heroku GAIA deployment as well? Or can we leave it out in that case?

Yes–the token value is required for a Gaia node regardless of where it runs, since it gets used by the Gaia node to authenticate uploads. The url_prefix value is used by the Python client when it goes to read a file. You can obtain the url_prefix from a running Gaia hub as follows:

$ curl -sL https://hub.blockstack.org/hub_info/                                                                                                                                                                                                                                                                    
{"challenge_text":"[\"gaiahub\",\"2018\",\"storage.blockstack.org\",\"blockstack_storage_please_sign\"]","read_url_prefix":"https://gaia.blockstack.org/hub/"}

You’ll want the read_url_prefix given here as your url_prefix in your client.ini.

1 Like