Base URL
After deploying Gasolina, your API will be available at:- AWS:
https://<api-gateway-id>.execute-api.<region>.amazonaws.com - GCP:
https://<service-name>-<hash>.a.run.app
Endpoints
Health Check
Verify that the Gasolina service is running.Get Signer Info
Retrieve the signer addresses registered with this Gasolina instance for a specific chain.
Response:
Request Signatures
Request signatures for a LayerZero message verification. This is the primary endpoint called by Essence to obtain verification signatures.Request Parameters Reference
lzMessageId Object
Top-Level Fields
ULN Version Selection
Error Responses
HTTP Status Codes
Common Error Scenarios
Chain Not Supported
availableChainNames configuration and has RPC providers configured.
Message Not Found
Block Confirmations Not Met
RPC Provider Error
Testing Your API
Using the Test Script
Both gasolina-aws and gasolina-gcp include a test script:
Successful Response:
Manual Testing
- Test health check:
- Test signer info:
- Test with sample message:
Extra Context Verification API
If you’ve configured extra context verification, Gasolina will call your custom API for additional validation.Request Format (to your API)
Expected Response
Your API should return a boolean indicating whether the message should be signed:Rate Limiting Considerations
While Gasolina doesn’t implement rate limiting by default, consider these factors:- RPC Provider Limits: Your RPC providers may have rate limits that affect signature generation speed.
-
Cloud Provider Limits:
- AWS API Gateway has default throttling limits
- GCP Cloud Run has concurrency limits
-
Scaling:
- AWS ECS auto-scales based on CPU/memory
- GCP Cloud Run auto-scales based on request volume
Security Considerations
-
No Authentication by Default: The API is publicly accessible. Consider adding:
- IP allowlisting at the load balancer level
- API key authentication if needed
- VPC/private endpoints for internal access
-
Signer Key Security:
- Keys are never exposed via the API
- Only signatures are returned, not private key material
-
Request Validation:
- Gasolina independently verifies events via RPC
- Block confirmation requirements are enforced
- Invalid requests are rejected before signing
Related Resources
- Gasolina Overview - Architecture and security model
- Implementation Guide - Deployment instructions
- DVN Troubleshooting - Debugging common issues
- DVN Technical Reference - Contract methods and events