eip712-go-api

command module
v0.0.0-...-260f6c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

README

EIP 712 - Go api - example

We are creating the hash to be signed on the user wallet and can verify it.

Usage

go run main.go

POST request

curl --request POST \
  --url http://localhost:1337/ \
  --header 'Content-Type: application/json' \
  --data '{
	"address": "0xEeEEeeEeeeeEeEEeeEeeeeEeEEeeEeeeeEeEEeeE",
	"chainid": 1,
	"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
	"tokenId": "138",
	"amount": "222222",
	"deadline": "19780"
}
'

### resp
{
	"hashToSign": "0xc1d79dbec465caddf6f578c56a93b67999de931428d1a96eb8ce3e26795b7e95"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL