🀄
MID
文A↪ 简体中文
文A↪ 简体中文
  • MID 的愿景
  • MID 操作指南
    • 1️⃣ 创建 MID 账户
    • 2️⃣ 绑定数字钱包
    • 3️⃣ 免费领取 .mid 身份
  • 了解 .mid 的工作原理
  • 合作伙伴
    • CutUp
      • 了解 CutUp 数字代金券的工作原理
      • 了解 CutUp 数字小票的工作原理
      • CutUp 城市派对地图小程序
  • API 整合
    • Quick start
      • 1. Request a user's MID identity
      • 2. Redirect back to your site by MID
      • 3. Use the access token to access the API
    • API
      • GET users/me
      • GET wallets
      • GET NFTs
Powered by GitBook
On this page
  1. API 整合
  2. API

GET wallets

Get authorized user's wallets info.

PreviousGET users/meNextGET NFTs

Last updated 2 years ago

CtrlK
  • Endpoint URL
  • OAuth 2.0 scopes required by this endpoint
  • Sample code
  • Example response

Endpoint URL

https://mid.maneslab.xyz/api/v1/wallets

OAuth 2.0 scopes required by this endpoint

profile

Sample code

let options = {
    method: 'Get',
    headers: {
        "authorization": `Bearer ${OAUTH-TOKEN}`,
        "content-type": "application/x-www-form-urlencoded",
    },
};
fetch('https://mid.maneslab.xyz/api/v1/wallets', options)
    .then(response => response.json())
    .then(response => {
        console.log(response)
    })
    .catch(err => console.error(err));

Example response

[
    {
      "id":"6406e0b96950c2aafa2056ca",
      "address":"xxxxxxxx",
      "chain":{
          "chain_id":"1",
          "name" : "Ethereum"
      },
      "name":"wallet1"
    },
    ...
]