Paretto is a complete DotSama wallet API. It is a RESTful API that allows you to create, manage and use DotSama wallets. It offers the following features:
- Validate Polkadot addresses
- Node.js 16+ (preferably 18+)
yarn install
yarn start
GET /utils/validate-address/:address
Parameter | Type | Description |
---|---|---|
address |
string |
Required. Address to validate |
Example
curl -X GET "http://localhost:3000/utils/validate-address/5GrpknVvGGrGH3EFuURXeMrWHvbpj3VfER1oX5jFtuGbfzCE" -H "accept: application/json"
Response
{
"address": "5GrpknVvGGrGH3EFuURXeMrWHvbpj3VfER1oX5jFtuGbfzCE",
"isValid": true
}
GET /utils/signature/verify
Parameter | Type | Description |
---|---|---|
address |
string |
Required. Address to validate |
signedMessage |
string |
Required. Message to validate |
signature |
string |
Required. Signature to validate |
Example
curl -X GET "http://localhost:3000/utils/signature/verify" -H "accept: application/json" -G \
--data-urlencode "address=5GrpknVvGGrGH3EFuURXeMrWHvbpj3VfER1oX5jFtuGbfzCE" \
--data-urlencode "signedMessage=Hello World" \
--data-urlencode "signature=0x8...
Response
{
"address": "5GrpknVvGGrGH3EFuURXeMrWHvbpj3VfER1oX5jFtuGbfzCE",
"isValid": true
}
You can find the Swagger documentation at /docs
.
Contributions, issues and feature requests are welcome!
Feel free to check issues page
This project is MIT licensed.