Skip to content

Provider Authorization

Marcelo Politzer Couto edited this page Aug 20, 2025 · 2 revisions

Alchemy

  1. Login to Alchemy.
  2. Navigate to Apps.
  3. Copy the key.
  4. Contents of CARTESI_BLOCKCHAIN_HTTP_AUTHORIZATION will have the form: Authorization:Bearer PROJECT_KEY_CONTENTS
image

ref. https://www.alchemy.com/docs/how-to-use-api-keys-in-http-headers

Google

  1. Login to Google cloud.
  2. Access the project credentials page.
  3. Copy the key.
  4. Contents of CARTESI_BLOCKCHAIN_HTTP_AUTHORIZATION will have the form: X-goog-api-key:PROJECT_KEY_CONTENTS
google-api-key-location

Metamask/Infura

  1. Login to Metamask / Infura
  2. Select the API key, then configure
  3. Copy the key.
  4. encode as base64. eg. RESULT=$(echo -n ':PROJECT_KEY_CONTENTS' | base64).
  5. Contents of CARTESI_BLOCKCHAIN_HTTP_AUTHORIZATION will have the form: Authorization:Basic RESULT_CONTENTS
image

Clone this wiki locally