월렛

List all imported wallets

get
Responses
200
OK
application/json
get
GET /api/wallet HTTP/1.1
Host: localhost:9090
Accept: */*
[
  {
    "address": "text",
    "id": "text",
    "privateKey": "text"
  }
]

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"
}
{
  "address": "text",
  "id": "text",
  "privateKey": "text"
}

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?