LogoLogo
DashboardBlogNode API DocsContact
  • Staking
    • Overview
    • FAQ
  • Ethereum
    • Staking Tutorial
      • API
        • Prerequisites
        • Authenticating with Auth0
        • Setting up a Wallet
        • Get Staking Transaction
        • Signing a Transaction
        • Broadcast Transaction
        • Full Code
    • Staking API Reference
      • Authentication
      • Get Validators
      • Stake Transaction
      • Broadcast Transaction
      • Exit Validators
      • Presigned Exit Request
Powered by GitBook
On this page
  1. Ethereum
  2. Staking API Reference

Authentication

PreviousStaking API ReferenceNextGet Validators
post

Allows users to securely authenticate with API credentials through Auth0, and in return, provides a JSON Web Token (JWT) that can be used to access the rest of the API endpoints.

Authorizations
Body
client_idstringOptional
client_secretstringOptional
grant_typestring · enumOptionalDefault: client_credentialsPossible values:
audiencestring · enumOptionalDefault: stakingPossible values:
Responses
200
OK
application/json
post
POST /oauth/token HTTP/1.1
Host: ethereum-staking.sprd.validationcloud.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "client_id": "text",
  "client_secret": "text",
  "grant_type": "client_credentials",
  "audience": "staking"
}
200

OK

{
  "access_token": "text",
  "scope": "text",
  "expires_in": "text",
  "token_type": "text"
}