Skip to content

bwarelabs/solana-cos-on-demand-sync

Repository files navigation

Solana COS On-Demand Sync API

Overview

The Solana COS On-Demand Sync API allows users to copy blockchain archive data from Solana blockchain into their own Tencent Cloud Object Storage (COS) buckets.

Getting Started

1. Grant Write Access to Our Service

To use the sync service, you must first grant write access to our system’s root ID on your Tencent Cloud Object Storage (COS) bucket.

Steps to Grant Write Access on Tencent COS:

  1. Log in to your Tencent Cloud Console.
  2. Navigate to Cloud Object Storage (COS) and select your bucket.
  3. Open the Permissions settings -> Bucket ACL
  4. Add our Root ID with write access to the bucket. Root ID: 200034403835
  5. Save the changes to apply the permissions.

Note: If your bucket has public write access, no further action is required.

bucket-acl

Note: Right now, the transfer is limited to 'eu-frankfurt' region. Your bucket needs to be located in 'eu-frankfurt'

2. Initiate a Data Sync Request

Once the necessary permissions are in place, you can initiate a data sync by specifying the desired start and end block numbers along with your Tencent COS bucket name and email address for notifications.

Example Request using cURL

curl -X POST "https://getsolana-api.bwarelabs.com" \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "startBlockNumber=1000" \
     -d "endBlockNumber=2000" \
     -d "[email protected]" \
     -d "bucketName=test-bucket-6546465464"

3. Receive Notification

After the sync process completes, you will receive an email confirmation with details about the copied data. Ensure that the provided email address is valid and accessible.

Note: If you want to import that data into a HBase cluster and be able to serve data from it, see solana-syncer - HbaseSync

GDPR Compliance Disclaimer

By providing your email address to initiate the sync process, you acknowledge and accept that we may send you transactional emails related to the completion status of your request. We do not use your email for marketing purposes or share it with third parties. We do not store your email.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published