Api Reference

getNFTMetadata

Returns a stake transaction

get

Create a transaction that stakes ETH.

https://docs.metamask.io/guide/sending-transactions.html

Query parameters
sourcestring Β· default: "xxx"optional

query source.

StrategyIdstring Β· default: "32x"optional

Id of the strategy.

addressstringrequired

The address performing the staking action. The address will have the authority to unstake.

Example: chainup.eth
amountstringrequired

The amount of ETH to stake (in uint256).

Example: 32000000000
Responses
curl -L \
  --url 'https://staking.chainupcloud.com/aggregator/api/v1/quote/stake?address=chainup.eth&amount=32000000000'
{
  "strategyId": "32x",
  "routes": [
    "ChainupPool"
  ],
  "weights": [
    "100%"
  ],
  "yieldsBreakdown": [
    "5.7%"
  ],
  "totalYield": "5.7%",
  "transaction": {
    "gas": "0x2710",
    "to": "0x0000000000000000000000000000000000000000",
    "from": "0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C",
    "value": "0x00",
    "data": "0x7f7465737432000000000000000000000000000000000000000000000000000000600057",
    "chainId": "0x3"
  }
}

Returns a unstake transaction, Not supported now until Shanghai upgrade

get

Reserved, not available until Shanghai upgrade

Query parameters
sourcestring Β· default: "xxx"optional

query source.

addressstring Β· default: "chainup.eth"required

The address performing the staking action. The address will have the authority to sell.

pubkeysstringrequired

The pubey of the validator that will be sold. When selling all, can fill in "all"

Example: ad28d4ce9afdac1584e4ce9440b7e1a9dc4a8c5f4bc8c66883723647fce77e42fe7898615a7af1e4971cd7a08403e349,ccd544ce9afdac1584e4ce9440b7e1a9dc4a8c5f4bc8c66883723647fce77e42fe7898615a7af1e4971cd7a08403e350
amountstringoptional

Used to support partial exits after staking pools (in uint256).

Example: 32000000000
Responses
curl -L \
  --url 'https://staking.chainupcloud.com/aggregator/api/v1/quote/unstake?address=text&pubkeys=ad28d4ce9afdac1584e4ce9440b7e1a9dc4a8c5f4bc8c66883723647fce77e42fe7898615a7af1e4971cd7a08403e349%2Cccd544ce9afdac1584e4ce9440b7e1a9dc4a8c5f4bc8c66883723647fce77e42fe7898615a7af1e4971cd7a08403e350'
{
  "gas": "0x2710",
  "to": "0x0000000000000000000000000000000000000000",
  "from": "0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C",
  "value": "0x00",
  "data": "0x7f7465737432000000000000000000000000000000000000000000000000000000600057",
  "chainId": "0x3"
}

Gets the metadata associated with a given NFT.

GET Gets the metadata associated with a given NFT.

Base URL : xxx

curl --request GET \
     --url 'https://undefined.g.alchemy.com/nft/v2/docs-demo/getNFTMetadata?contractAddress=0xe785E82358879F061BC3dcAC6f0444462D4b5330&tokenId=44&refreshCache=false' \
     --header 'accept: application/json'

Last updated

Was this helpful?