ChainUp Cloud
English
English
  • 👋Welcome to ChainUp Cloud
  • INTRODUCTION
    • 🔎Chainup Cloud API Quickstart
    • đŸ•šī¸Products
      • â›“ī¸Blockchain API
      • âš™ī¸Fullnode Service
      • âš’ī¸Dedicated Node
      • đŸ‘ĨWhite Label Validator
      • ⛲Staking
      • 🍧HashKing Aggregator
      • 💌ChainNova
    • 👷For Developers
      • â›“ī¸Use Blockchain API
      • âš’ī¸Deploy Dedicated Node
      • â˜ī¸Use distributed storage with IPFS API
    • 👾For Investors
      • ⛲How to stake Ethereum?
      • đŸ‘ĨRunning your own validators
  • ChainUpCloud Open API
    • Staking Rewards API
      • Validator Daily Rewards
      • Validator Total Rewards
      • Cloud Validator Settles EL Rewards
    • ETH Staking API
      • Broadcast Staking Tx
      • Create Validators
      • Get Validators
      • Exit Validators by Pubkeys
    • Error Codes
  • đŸˇī¸NFT API
    • Transfer API
    • NFT Metadata Access
    • Ownership & Token Gating
  • Blockchain API
    • 📚Overview
      • Create Blockchain API for your project
      • Dashboard stats
    • 💎Ethereum
      • JSON-RPC methods
      • WebSocket stream
    • Solana
      • JSON-RPC methods
      • Solana Nodes FAQ
      • Websocket Stream
    • TON
      • HTTP API
      • Indexer API
    • 🚔BNB
      • JSON-RPC methods
      • WebSocket stream
    • â›ŊPolygon (Matic)
      • JSON-RPC methods
      • WebSocket stream
    • 🌞Tron
      • JSON-RPC methods
    • đŸĒ™Bitcoin
      • JSON-RPC methods
    • 📂Filecoin
      • JSON-RPC methods
      • Public APIs
    • 🍡Polkadot
      • JSON-RPC methods
      • WebSocket stream
    • âšĒLitecoin
      • JSON-RPC methods
    • 🚃Near
      • JSON-RPC methods
    • 💎Ethereum Beacon
      • JSON-RPC methods
    • đŸĒ¨Ethereum Classic - ETC
      • JSON-RPC methods
    • đŸĨ€Bitcoin Cash - BCH
      • JSON-RPC methods
    • đŸĻƒKusama
      • JSON-RPC methods
      • WebSocket stream
    • 🍆EOS
      • JSON-RPC methods
    • đŸ‘ģFantom
      • JSON-RPC methods
    • ã€°ī¸Aptos
      • HTTP Methods
    • đŸ”ī¸Avalanche
      • JSON-RPC methods
    • 🔑Cosmos
      • HTTP Methods
    • 📚Omni
      • JSON-RPC methods
    • â˜¸ī¸Arbitrum
      • JSON-RPC methods
    • đŸ’¯Dogecoin
      • JSON-RPC methods
    • 🎷Optimism
      • JSON-RPC methods
    • Dash
      • JSON-RPC methods
    • Zcash
      • JSON-RPC methods
    • XRP
      • JSON-RPC methods
    • Base
      • JSON-RPC methods
    • Scroll
      • JSON-RPC methods
    • Qtum
      • JSON-RPC methods
  • Staking
    • 📘Overview
    • 💎Staking on Ethereum
      • 📀Shanghai Upgrade
      • ⛲How to stake Ethereum?
      • 📙How to generate Deposit Data?
    • 📏Staking on Ethereum with SSV
    • đŸ–Œī¸Registering SSV Operator
    • đŸ–Œī¸How to delegate to SSV Cluster?
    • 🌌Staking on Cosmos
      • Staking on Cosmos
      • 在 Cosmos 䏊贍æŠŧ
    • 📱Staking on Mina
    • 🍆Staking on EOS
    • 📂Staking on FIL
    • đŸ•ļī¸Staking on ZILLIQA
  • Validator Node
    • 📗Overview
    • 💎Ethereum
      • Running Validator Node
      • How to create Validator Keys?
  • RESOURCES
    • 📕FAQ Introduction
      • â›“ī¸Blockchain API
      • âš’ī¸Dedicated Node
    • đŸ—ŗī¸Support
    • Api Reference
Powered by GitBook
On this page

Was this helpful?

  1. RESOURCES

Api Reference

PreviousSupport

Last updated 1 year ago

Was this helpful?

getNFTMetadata

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'

Returns a stake transaction

get

Create a transaction that stakes ETH.

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

Query parameters
sourcestringOptional

query source.

Default: xxx
StrategyIdstringOptional

Id of the strategy.

Default: 32x
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
200
Successful operation
405
Invalid input
get
GET /aggregator/api/v1/quote/stake HTTP/1.1
Host: staking.chainupcloud.com
Accept: */*
{
  "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
sourcestringOptional

query source.

Default: xxx
addressstringRequired

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

Default: chainup.eth
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
200
Successful operation
405
Invalid input
get
GET /aggregator/api/v1/quote/unstake HTTP/1.1
Host: staking.chainupcloud.com
Accept: */*
{
  "gas": "0x2710",
  "to": "0x0000000000000000000000000000000000000000",
  "from": "0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C",
  "value": "0x00",
  "data": "0x7f7465737432000000000000000000000000000000000000000000000000000000600057",
  "chainId": "0x3"
}
  • getNFTMetadata
  • GETReturns a stake transaction
  • GETReturns a unstake transaction, Not supported now until Shanghai upgrade
  • Gets the metadata associated with a given NFT.