--- sidebar_position: 1 sidebar_label: 'Onboard Account' --- # Get your API key & credits ## 1. Log in and receive your key Accounts Image (1) - Go to Polymer Portal: [accounts.polymerlabs.org](https://accounts.polymerlabs.org/) - Sign in with Google — **we only support Google OAuth at this time**. - The portal instantly creates your personal API key and drops you on the dashboard (Mainnet / Testnet toggle, 0 credits). ## 2. Buy credits - Click the **“Purchase Credits”** button. - Stripe checkout opens; choose any multiple of **10,000 credits**. - Complete the payment—credits appear in your dashboard **immediately**. Accounts Image ### How credits are spent Mainnet - **Prove API** -> Only the `proof_request` call costs credits; `proof_query` does not cost credits. - **Execute API** -> Only the `execute_request` call costs credits; `execute_query` does not cost credits. Testnet - Credits are not required for Testnet and uses its own Testnet-API key (visible in the testnet toggle). ### Pricing - $0.01 per credit - **Prove API** -> One credit = one proof - **Execute API** -> Credit rate may vary based on usecase. Reach out to us to learn more. ## 3. Make your first request Replace `YOUR_API_KEY` below and run the two-step flow. ### 3a. Request the proof ```bash curl -X POST \\ -H "Authorization: Bearer YOUR_API_KEY" \\ -H "Content-Type: application/json" \\ -d '{ "jsonrpc": "2.0", "id": 1, "method": "proof_request", "params": [{ "srcChainId": 11155420, "srcBlockNumber": 26421705, "globalLogIndex": 15 }] }' ``` **Response** ```json {"jsonrpc":"2.0","id":1,"result":123456} ``` Save the numeric `result`—that’s your `jobID`. ### 3b. Query for the proof ```bash # Repeat every few seconds until status == "complete" curl -X POST \\ -H "Authorization: Bearer YOUR_API_KEY" \\ -H "Content-Type: application/json" \\ -d '{ "jsonrpc": "2.0", "id": 1, "method": "proof_query", "params": ["123456"] }' ``` **Final response** ```json { "jsonrpc":"2.0", "id":1, "result":{ "status":"complete", "proof":"base64EncodedProofData..." } } ``` Base64-decode the proof bytes, convert to hex, and submit them as call-data in your smart contract. That’s it—your credits are deducted automatically and you can track your daily usage in Polymer Portal.