Skip to content

iotexproject/verifying-email-binder

Repository files navigation

verifying email binder

Build

docker build -t verifying-email-binder .

Run

export DATABASE_URL=postgres://aa_email:email@localhost:5432/aa_email
export RPC_URL=https://babel-api.testnet.iotex.io
export GUARDIAN_ADDRESS=0xBf081D23317966eEBD59Bc8EDB593A830F373178
export SIGNER={SIGNER_PRIVATE_KEY}
export SMTP_PASSWORD=
export SMTP_HOST=smtp.larksuite.com
export [email protected]

API

curl -X POST https://email-binder.testnet.iotex.io/ -H "Content-Type:application/json" --data '{
    "jsonrpc":"2.0",
                "method":"send_code",
                "params": ["0x8803DAF0AB9Bad65a56F4D9AEcA56085491C299A", "[email protected]"],
    "id":1
}'

curl -X POST https://email-binder.testnet.iotex.io/ -H "Content-Type:application/json" --data '{
    "jsonrpc":"2.0",
                "method":"verify_code",
                "params": ["0x8803DAF0AB9Bad65a56F4D9AEcA56085491C299A", "[email protected]", "123456"],
    "id":1
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages