Cloud Notebooks
The samples run in Google Colab and use the vbase-api Python package. Basic samples require only a vBase API key.
1. Get a vBase API Key
Sign in to vBase.
Open Account Settings.
Copy your API key and keep it private.
2. Add the API Key to Google Colab
Open the setup notebook, then select the key icon in the left sidebar to open the Secrets panel.

Create a secret named VBASE_API_KEY, paste the API key as its value, and enable notebook access. Do not paste the API key into a code cell or save it in notebook output. Run the setup notebook's validation cell to confirm that vBase accepts the key before opening another sample.
The vBase API client uses https://app.vbase.com by default. The samples do not require a Forwarder URL or a blockchain private key.
3. Configure Amazon S3 When Needed
Only the four producer and verifier samples with _s3 in their file names need AWS configuration. Add these Google Colab secrets:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGIONAWS_S3_BUCKETAWS_SESSION_TOKENwhen using temporary credentials
Use a dedicated AWS identity with access limited to the bucket and prefix used by the samples. The bucket must already exist.
The producer samples write below these prefixes:
vbase-samples/portfolio-history/vbase-samples/sentiment-history/
4. Run a Sample
Start with Create a collection or Stamp a text record. Run cells from top to bottom.
For an S3 workflow, run a producer before its matching verification sample. The producer prints the collection name, collection CID, owner address, and S3 location. Copy the printed CID to COLLECTION_CID in the matching verifier. Verification defaults to the current vBase account; to verify data from another producer, also set OWNER_ADDRESS to the address supplied by that producer.
See the repository README for the complete sample list.
Last updated

