Authentication
The Data API uses the same API key that you use to authenticate with other Stackup services.
Auth HTTP header
To authenticate your requests, simply add a Stackup API key to the SU-ACCESS-KEY
header. As each API key is scoped to a specific network, the API results will return data within the same scope. This ensures that you receive consistent and relevant data for your intended network.
One API key per use case
The same API key can be used for hosted nodes, bundlers, paymasters, and data access. However, if you require more granular access control, we recommend creating a new instance solely for data access. This approach allows for better management and control over the API usage and associated resources.
Updated over 1 year ago