Skip to main content

Validator API - Polkadot


API AuthenticationClick to view API Authentication details
API calls require authentication with API key via Authorization request header or URL property. Calls are made to one of the Polkadot Validator API endpoints found in your app's dashboard.

For example: https://hubble.figment.io/api/v1/prime

Here's some boilerplate to get you started.
fetch("https://hubble.figment.io/api/v1/prime/polkadot/nomination_proxy", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Authorization" : "<api_key>",
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})

Available Methods

/polkadot/nomination_proxy

Request creation of new Polkadot account with passed attributes.

Request Body
Example Response
{
"success": true
}
SpecificationView Specification

Parameters

  • stash_account_addressstring — A valid Polkadot address (required).
  • controller_account_addressstring — A valid Polkadot address (required).
  • proxy_account_addressstring — A valid Polkadot address (required).
  • qtx_dot_bondedstring — An amount in DOT.
  • polkadot_network_namestring — Allowed value(s): polkadot, westend

Response

  • success - boolean — Returns true if the action was successful, otherwise returns false.

/polkadot/nomination_proxy/revoke_proxy

Request to revoke Polkadot proxy account with passed attributes.

Request Body
Example Response
{
"success": true
}
SpecificationView Specification

Parameters

  • stash_account_addressstring — A valid Polkadot address (required).
  • controller_account_addressstring — A valid Polkadot address (required).

Response

  • successboolean — Returns true if the action was successful, otherwise returns false.