Skip to content

๐Ÿ‘› paretto is a complete DotSama wallet API. It is a RESTful API that allows you to create, manage and use DotSama wallets.

Notifications You must be signed in to change notification settings

vidalpaul/paretto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Paretto: A Complete DotSama Wallet API

Introduction

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

Table of Contents

Getting Started

Prerequisites

  • Node.js 16+ (preferably 18+)

Installation

yarn install

Usage

yarn start

Documentation

API Reference

Utils

Address
Validate Address
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
}
Signature
verify Signature
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
}

Swagger

You can find the Swagger documentation at /docs.

Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page

License

This project is MIT licensed.

About

๐Ÿ‘› paretto is a complete DotSama wallet API. It is a RESTful API that allows you to create, manage and use DotSama wallets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published