Wallet

List all imported wallets

get

/wallet

Responses
curl -L \
  --url '//localhost:9090/api/wallet'
[
  {
    "address": "text",
    "id": "text",
    "privateKey": "text"
  }
]

Import a private key

post

/wallet

Body
privateKeystring

This is the exported private key from lotus wallet export

Responses
curl -L \
  --request POST \
  --url '//localhost:9090/api/wallet' \
  --header 'Content-Type: application/json'
{
  "address": "text",
  "id": "text",
  "privateKey": "text"
}

Remove a wallet

delete

/wallet/{address}

Path parameters
addressstringrequired

Address

Responses
curl -L \
  --request DELETE \
  --url '//localhost:9090/api/wallet/{address}'

No body

Last updated

Was this helpful?