Skip to main content

Import

import { useProjectAccessKey } from '@0xsequence/connect'

Usage

import { useProjectAccessKey } from '@0xsequence/connect'

function App() {
  const projectAccessKey = useProjectAccessKey()

  return (
    <div>
      {projectAccessKey && (
        <p>Project access key is configured</p>
      )}
    </div>
  )
}

Return Type

string
Returns the project access key string, or undefined if not configured.

Notes

The project access key:
  • Authenticates your application with the backend services
  • Identifies your specific project
  • Must be provided during the initial configuration of the connect context

Marketplace Integration Example

const projectAccessKey = useProjectAccessKey()
const marketplaceClient = new MarketplaceIndexer(apiUrl, projectAccessKey)