Cosmos

Post restake Intent

Changed on

Create transaction to move given amount of ATOMs from one validator to another.

post/v1/cosmos/{network}/restake-intents

Request

  • Base URL
    https://svc.blockdaemon.com/boss
  • URL
    https://svc.blockdaemon.com/boss/v1/cosmos/{network}/restake-intents
  • Auth
    API key in header X-API-KEY

Request body

delegator_addressstring bech32 required

Public Key of an asymmetric key-pair.

old_validator_addressstring bech32 required

Public Key of an asymmetric key-pair.

amountstring required

Denomination of the cryptocurrency Cosmos.

plan_idstring

This feature enables you to stake to validators from the specified plan(s). When no plan id is specified, validators across all plans that match the API route will be available for staking. If it is a shared plan, you can to stake to validators on a shared node from the specified plan.

Example request

{
  "delegator_address": "cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9",
  "old_validator_address": "cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9",
  "amount": "100",
  "plan_id": "plan_Wgx98Rbi8nQuL9ddn3mTk1"
}

Response

Restake intent created

restake_intent_idstring uuid required

Unique idenifier for a restake intent.

customer_idstring required

Unique identifier for a customer

protocol'ethereum' | 'solana' | 'cosmos' | 'polygon' | 'near' | 'cardano' | 'avalanche' | 'binance' required

Blockchain protocol.

network'mainnet' | 'localnet' | 'goerli' | 'prater' | 'hoodi' | 'testnet' | 'devnet' | 'preprod' | 'fuji' | 'local' required

Protocol-specific network.

Example response

{
  "restake_intent_id": "4ba06e89-8c29-483e-ac36-318de5aa7364",
  "customer_id": "SatoshiNakamoto-xUYJbPw9hw",
  "cosmos": {
    "unsigned_transaction": "0x22895118000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120087fed394b43849eebef1e88873cd9efdbe33136656e5148e659b8b2f33625d40000000000000000000000000000000000000000000000000000000000000030b81748644e23c4d950f9dd709f3eb73d5eacd9657997e1d9dde7c4ebd8a6519ecb9d0a7fb603d3b68e023278f9650122000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020010000000000000000000000c509bb854c526af4cee5e037089f7aa8e091d8870000000000000000000000000000000000000000000000000000000000000060b36b79b4b206c0310472c117fa40c05342b5dc3e89f98f42c9da3ce6450d4c603cad55248017fd4eca3ab277cca64569193e4d487f5b2ea78a2bcdc81926c313c05842a3af318967a775783bba22519e8b8886587efa99aa7dab5784f792b187\n",
    "delegator_address": "cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9",
    "old_validator_address": "cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9",
    "new_validator_address": "cosmos1wvvhhfm387xvfnqshmdaunnpujjrdxznr5d5x9",
    "amount": "100",
    "hex_transaction": {
      "transaction_hash": "BD2B84693A0AE959C63A8D4D1F77125449312EED64E53C654D2D7F07E4592BAE",
      "unsigned_transaction_hex": "APOENA93A0AE959C63A8D4D1F77125449312EED64E53C654D2D7F07E4592BAAF"
    }
  },
  "binance": {
    "unsigned_transaction": "0x22895118000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120087fed394b43849eebef1e88873cd9efdbe33136656e5148e659b8b2f33625d40000000000000000000000000000000000000000000000000000000000000030b81748644e23c4d950f9dd709f3eb73d5eacd9657997e1d9dde7c4ebd8a6519ecb9d0a7fb603d3b68e023278f9650122000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020010000000000000000000000c509bb854c526af4cee5e037089f7aa8e091d8870000000000000000000000000000000000000000000000000000000000000060b36b79b4b206c0310472c117fa40c05342b5dc3e89f98f42c9da3ce6450d4c603cad55248017fd4eca3ab277cca64569193e4d487f5b2ea78a2bcdc81926c313c05842a3af318967a775783bba22519e8b8886587efa99aa7dab5784f792b187\n",
    "delegator_address": "bnb13ym5szfmwh0wz9j8wr2lu2gaml94h895u9el2e",
    "old_validator_address": "bva1mrpf5n5e5knn3z9qng5pnex3m9pvyhg6434j0t",
    "new_validator_address": "bva1mrpf5n5e5knn3z9qng5pnex3m9pvyhg6434j0t",
    "amount": "10000000000"
  }
}

Changes

    • breaking

      the response's property type changed from string to integer, and format from no format to int32 for status

    • breaking

      the response's property type changed from string to integer, and format from no format to int32 for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      added the new devnet enum value to the / response property for the response status

    • warning

      added the new fuji enum value to the / response property for the response status

    • warning

      added the new goerli enum value to the / response property for the response status

    • warning

      added the new local enum value to the / response property for the response status

    • warning

      added the new localnet enum value to the / response property for the response status

    • warning

      added the new prater enum value to the / response property for the response status

    • warning

      added the new preprod enum value to the / response property for the response status

    • warning

      added the new testnet enum value to the / response property for the response status

    • info

      the response's property default value mainnet was removed for the status

    • info

      removed the holesky enum value from the / response property for the response status

    • info

      removed the polkadot enum value from the / response property for the response status