---
# System prepended metadata

title: Wallet Balance
tags: [v2]

---

---
title: Wallet Balance
tags: v2
---

# Wallet Balance

## 需求
- 需要能獲取 user 的 transaction wallet 的餘額，目前只需要 ETH and MATIC
    - tranction wallet https://trello.com/c/ek2uEkcR/418-fio-wallet-%E8%88%87%E5%B8%B3%E8%99%9F%E7%B6%81%E5%AE%9A%E8%88%87%E5%AE%89%E5%85%A8

## 規劃
1. tms 給出 wallet info 與 blockchain name and network
    - account_id
    - wallet_type
    - wallet_id 
    - chain_name
    - network

2. fbms 將 wallet info and blockchain 去查詢，回傳給 tms

## API 
[GET] `/api/v2/wallets/:wallet_id`
```json
{
    code: 0,
    message: "ok",
    data: [
        {
            chain_name: eth,
            balance: 0
        },
        {
            chain_name: MATIC,
            balance: 0
        }
    ]
}
```