🚀
Aleo RPC API
  • Aleo RPC API
  • endpoints
    • NFTs
      • getPublicNFTsForAddress
      • getPublicTokenProgramsForAddress
    • blocks
      • block
      • blocks
      • getAleoBlocks
      • getStateRoot
      • latest/block
      • latest/hash
      • latest/height
    • mappings
      • getMappingValue
    • programs
      • generateDeployment
      • getGeneratedDeployment
      • getProgramTypes
      • program
      • transactionsForProgram
      • transactionsForProgramCount
    • records
      • getStatePath
      • records/all
      • records/byTransitionAndIndex
      • records/isOwner
      • serialNumbers
    • staking
      • getStakedBalanceForAddress
    • status
      • chainStatus
    • transactions
      • aleoTransaction
      • generateTransaction
      • getGeneratedTransaction
      • getPublicTransactionsForAddress
      • transaction
      • transactions
    • transitions
      • getTransactionId
      • transitionsWithoutRecordInputs
Powered by GitBook
On this page
  • Description
  • Method Parameters
  • Returns
  • Example
  • Request
  • Response
  1. endpoints
  2. staking

getStakedBalanceForAddress

Description

Returns the amount of Aleo credits a specific address has staked.

Method Parameters

  • params - Object:

    • address - string: The Aleo address to retrieve staked balance encoded in bech32 (prefix: aleo).

Returns

  • result - number: Amount of Aleo microcredits staked.

Example

Request

curl --location --request POST 'https://dev.aleorpc.com' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getStakedBalanceForAddress",
    "params": {
        "address": "aleo1wamjqlka7d0gazlxdys6n8e8zeee3ymedwvw8elvh7529kwd45rq0plgax"
    }
}'

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": -6702023
}
PreviousstakingNextstatus

Last updated 12 months ago