월렛

List all imported wallets

get
Responses
200
OK
application/json
get
GET /api/wallet HTTP/1.1
Host: localhost:9090
Accept: */*
[
  {
    "actorId": "text",
    "actorName": "text",
    "address": "text",
    "balance": 1,
    "balancePlus": 1,
    "balanceUpdatedAt": "text",
    "contactInfo": "text",
    "id": 1,
    "location": "text",
    "privateKey": "text",
    "walletType": "UserWallet"
  }
]

Import a private key

post
Body
privateKeystringOptional

This is the exported private key from lotus wallet export

Responses
200
OK
application/json
post
POST /api/wallet HTTP/1.1
Host: localhost:9090
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "privateKey": "text"
}
{
  "actorId": "text",
  "actorName": "text",
  "address": "text",
  "balance": 1,
  "balancePlus": 1,
  "balanceUpdatedAt": "text",
  "contactInfo": "text",
  "id": 1,
  "location": "text",
  "privateKey": "text",
  "walletType": "UserWallet"
}

Remove a wallet

delete
Path parameters
addressstringRequired

Address

Responses
204
No Content
delete
DELETE /api/wallet/{address} HTTP/1.1
Host: localhost:9090
Accept: */*

No content

Last updated

Was this helpful?