Query Wallet Synchronization Info

Get the blockchain synchronization status of a wallet.

Request

GET /v1/sofa/wallets/{WALLET_ID}/blocks

Response Body

Field Type Description
latest_block_height int64 The latest block height on blockchain
synced_block_height int64 The current synced block height

Sample Request

API

/v1/sofa/wallets/56788/blocks

Response Body

{
  "latest_block_height": 29317651,
  "synced_block_height": 28529203
}

Sample cURL Command

curl -X GET 'http://localhost:8889/v1/mock/wallets/{WALLET_ID}/blocks'