Questions?
Reach out via Slack or email and we can assist and schedule a call to walk you through the migration if needed
Timeline
- April 1st 2024:
- Release of Figment API V2
- April 30th 2025:
- Deprecation of:
- Rewards API V1
- DOT proxy V1
- ETH Staking Flows API
- ETH Validators API V1
- Deprecation of:
For all endpoints
- All our endpoints are on the same base URL
https://api.figment.io
- All endpoints require the API keys to be sent in the
x-api-key
header - We no longer use numeric IDs, only strings
Rewards API
ETH Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1:
https://eth-rewards.datahub.figment.io/v2/rewards
- V2:
https://api.figment.io/ethereum/rewards
- V1:
- You don’t need to pass validator pubkeys anymore. The endpoint knows which accounts you track and returns rewards for those.
- The endpoint’s pagination uses our new API standard: page’s size and number.
- The following field have been renamed:
- The parameter
aggregation
is renamed totime_rollup
- The parameter
chain_id
is renamed tonetwork
- The response field
validator
is renamed topubkey
- The response meta field
network
is renamed toprotocol
- The response’s rewards types
staking
andtips
are renamed toconsensus
andexecution
- The response field
mev_service
is renamed tomev_relay
- The parameter
ETH Organization Rewards
- V1 endpoint -> V2 endpoint
- The endpoint URL has changed:
- V1 URL:
https://rewards.datahub.figment.io/v3/rewards/ethereum/validator_addresses
V2 URL:https://api.figment.io/ethereum/validators
- V1 URL:
- The parameter
chain_id
is renamed tonetwork
- The response field
id
is renamed topubkey
- The response’s rewards types
staking
andtips
are renamed toconsensus
andexecution
- The response field
type
is gone - The endpoint’s pagination uses our new API standard: page’s size and number.
ETH Withdrawals
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://eth-rewards.datahub.figment.io/v2/withdrawals
- V2 URL:
https://api.figment.io/ethereum/withdrawals
- V1 URL:
- The response field
validator_public_key
is renamed topubkey
ETH Reward Rates
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://eth-rewards.datahub.figment.io/rates
- V2 URL:
https://api.figment.io/ethereum/rewards_rates
- V1 URL:
- The response is included within a
data
key - The response’s rewards types
staking
andtips
are renamed toconsensus
andexecution
ETH Network Overview
- V1 endpoint -> V2 endpoint
- The endpoint URL has changed:
- V1 URL:
https://eth-network.datahub.figment.io/v3/ethereum/network_overview
- V2 URL:
https://api.figment.io/ethereum/network_estimates
- V1 URL:
- The query param
chain_id
is renamed tonetwork
- The response is included within a
data
key
SOL Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://solana-rewards.datahub.figment.io/v2/rewards
- V2 URL:
https://api.figment.io/solana/rewards
- V1 URL:
- You don’t need to pass system or staking accounts anymore. The endpoint knows which accounts you track and returns rewards for those.
- The query param
chain_id
is renamed tonetwork
- The response is included within a
data
key - The response meta field
network
is renamed toprotocol
SOL Rewards Rates
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://solana-rewards.datahub.figment.io/rates
- V2 URL:
https://api.figment.io/solana/rewards_rates
- V1 URL:
DOT Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://polkadot-rewards.datahub.figment.io/v2/rewards
- V2 URL:
https://api.figment.io/polkadot/rewards
- V1 URL:
- The query param
chain_id
is renamed tonetwork
- The response is included within a
data
key - The response meta field
network
is renamed toprotocol
DOT Reward Rates
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://polkadot-rewards.datahub.figment.io/rates
- V2 URL:
https://api.figment.io/polkadot/rewards_rates
- V1 URL:
NEAR Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://near-rewards.datahub.figment.io/rates
- V2 URL:
https://api.figment.io/near/rewards_rates
- V1 URL:
- The request parameter
accounts
is renameddelegator_addresses
- The request parameter
aggregation
is renamedtime_rollup
- The response field
accounts
is renamed todelegator_address
ATOM Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://cosmos-rewards.datahub.figment.io/rates
- V2 URL:
https://api.figment.io/cosmos/rewards_rates
- V1 URL:
- The request parameter
accounts
is renameddelegator_addresses
- The response field
accounts
is renamed todelegator_address
ADA Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://cardano-rewards.datahub.figment.io/v2/rewards
- V2 URL:
https://api.figment.io/cardano/rewards
- V1 URL:
- In the request,
accounts
is renamed todelegator_addresses
- In the response
accounts
is renamed todelegator_addresses
- In the response,
period
is renamed toepoch
MATIC Rewards
- V1 Endpoint -> V2 Endpoint
- The endpoint URL has changed:
- V1 URL:
https://matic-rewards.datahub.figment.io/v2/rewards
- V2 URL:
https://api.figment.io/polygon/rewards
- V1 URL:
- In the request,
accounts
is renamed todelegator_addresses
- In the response
accounts
is renamed todelegator_address
- In the response,
period
is renamed tocheckpoint
Legacy Staking API (Flows)
ETH Aggregated Staking and Unstaking
We're deprecating our ETH Aggregated Staking and ETH Aggregated Unstaking flows. All features are available through our other Ethereum RESTful endpoints:
- Create Validators for synschronously creating validators and getting unsigned staking transactions
- Broadcast Staking Transaction for broadcasting a signed staking transactions and funding validators
- Exit Validators for exiting validators on demand (by withdrawal address or by public keys)
Staking Flows (Create)
- The endpoint URL has changed:
- V1 URL:
https://{network}-slate.datahub.figment.io/api/v1/flows
- V2 URL:
https://api.figment.io/flows
- V1 URL:
Staking Flows (Next)
- The endpoint URL has changed:
- V1 URL:
https://{network}-slate.datahub.figment.io/api/v1/flows/[:flow_id]/next
- V2 URL:
https://api.figment.io/flows/[:flow_id]/next
- V1 URL:
Polkadot Proxy
DOT Add Nomination Proxy
- The endpoint URL has changed:
- V1 URL:
https://hubble.figment.io/api/v1/prime/polkadot/nomination_proxy
- V2 URL:
https://api.figment.io/polkadot/nomination_proxy
- V1 URL:
DOT Revoke Nomination Proxy
- The endpoint URL has changed:
- V1 URL:
https://hubble.figment.io/api/v1/prime/polkadot/nomination_proxy/revoke_proxy
- V2 URL:
https://api.figment.io/polkadot/nomination_proxy/revoke_proxy
- V1 URL:
ETH Validators API
Provision Validators
- V1 Endpoint -> V2 Endpoint
- The URL has changed:
- V1 URL:
https://hubble.figment.io/api/v1/prime/eth2_staking/provision
- V2 URL:
https://api.figment.io/ethereum/validators
- V1 URL:
- Before:
/provision
allowed you to create validator public keys in an asynchronous way: it didn’t return the validators data in the response and you needed to poll Get Validators and then call Build Funding Transaction to get a staking transaction for validators. - Now: Creating validators and generating a staking transaction to fund them are now merged into one synchronous endpoint: Create Validators.
- The parameter
eth2_network_name
is renamed tonetwork
Build Funding Transaction
- V1 Endpoint
- This endpoint is not present in the API V2.
- Before: This endpoint allowed you to get a staking transaction to fund N validators that had previously been provisionedusing the Provision Validators endpoint. This was a two step process
- Now: Creating validators and generating a staking transaction to fund them are now merged into one synchronous endpoint: Create Validators.
ETH Get Validators
- The URL has changed:
- V1 URL:
https://hubble.figment.io/api/v1/prime/eth2_staking/validators
- V2 URL:
https://api.figment.io/ethereum/validators
- V1 URL:
- The parameter
eth2_network_name
is nownetwork
- The response field
presigned_exit_transaction
is now an object calledexit_message
- Request additional metadata (status history, deposit data, exit message, etc) is now handled with the
include_fields
parameter. - Validator metadata in the repsonse is now nested directly in the parent
data
object instead ofdata.attributes
- Response field
meta
object in V2 gives you pagination info