Skip to main content
POST
/
transactions
/
consolidate-stake
Create a consolidate stake request
curl --request POST \
  --url https://api.anchorage-staging.com/v2/transactions/consolidate-stake \
  --header 'Api-Access-Key: <api-key>' \
  --header 'Api-Signature: <api-signature>' \
  --header 'Api-Timestamp: <api-timestamp>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assetType": "ETH",
  "idempotentId": "12838927347",
  "source": {
    "id": "1c920f4241b78a1d483a29f3c24b6c4c",
    "type": "WALLET"
  },
  "sourceStakingPosition": "0xa1d1...",
  "targetStakingPosition": "0x9647...",
  "description": "Internal ID: #12838927347"
}
'
{
  "data": {
    "transactionId": "8696144cca28a634c05858d00e51191408498a7808a837fc4645b4b6997dde09"
  }
}
Signed and idempotent. The signer injects idempotentId into the body before computing the signature.

Authorizations

Api-Access-Key
string
header
required

An API key associated with a security role

Headers

Api-Signature
string
required

A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.

Construction example: toHex( ed25519Sign( signing_key, '{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody) ) )

Pattern: ^[0-9A-Fa-f]{128,160}$
Api-Timestamp
integer<int64>
required

Current timestamp, represented as unix epoch seconds

Body

application/json
assetType
string
required

A string representing a type of crypto-asset, which usually corresponds to the crypto asset's ticker symbol.

Use /asset-types to list all of the supported asset types for your organization.

Example:

"ETH"

idempotentId
string
required

A client-provided unique ID for idempotent requests

Maximum string length: 128
Example:

"12838927347"

source
SimpleSourceResourceDetails · object
required

An object representing a resource capable of sending funds.

Construction example: { "id":"1c920f4241b78a1d483a29f3c24b6c4c", "type":"WALLET" }

sourceStakingPosition
string
required

Source staking validator public key to consolidate

Example:

"0xa1d1..."

targetStakingPosition
string
required

Target staking validator public key

Example:

"0x9647..."

description
string | null

An optional string providing more context to this transaction. It will be visible on the Anchorage Digital iOS app and will not be published to the blockchain.

Example:

"Internal ID: #12838927347"

Response

Successfully initiated a consolidate stake transaction

data
CreateStakeDetails · object
required
Example:
{
"transactionId": "8696144cca28a634c05858d00e51191408498a7808a837fc4645b4b6997dde09"
}