Access keys serve as authentication tokens needed to interact with the Gas Manager Admin API. These APIs empower you to manage your gas policies for sponsoring user operations, and you are required to include an access key in the authentication header for all Gas Manager Admin API requests.
Access Keys Are Available on Growth and Enterprise Tiers
The ability to create access keys is exclusively available to users on the Growth or Enterprise Tiers, as the Gas Manager Admin APIs are only accessible to these tiers. For team accounts, only those with admin permissions are able to create an access key.
Start by opening your Alchemy Dashboard, where you'll find a list of your apps. Move your cursor over the "profile" option situated at the top right corner and then select the "settings" option.
Once inside the settings, choose the "Access Keys" option.
Now, click on the "Create Access Key" option to generate a new access key.
Fill in the necessary details for your new access key and then hit "Create". Below, you'll find an explanation of what each field signifies:
Field Description Name An identifier for your access key. Permissions Dictates whether your access key holds read / write permissions. If the access key only has read permissions, you won't be able to create, delete, or update policies. Expiry Date Optional field. If set, the access key will cease to work after this date.
As soon as the new access key is successfully created, it will be displayed to you. This is a one-time view!
One-Time View Only
Note that this access key will only be viewable one time. Please save this access key in a secure location.
Post-creation, the access key will be listed under the access keys list from where you can delete it if required.
To construct more requests for different API endpoints, please refer to their respective pages on the Gas Manager Admin API:
- Create Policy
- Get Policy
- Delete Policy
- Replace Policy
- Get All Policies
- Update Policy Status
- Get Policy Stats
That concludes our tutorial!
With these steps, you can now successfully create and use access keys with the Gas Manager Admin APIs.
Updated 3 months ago