rapid-eth / rapid-adventures

Rapid Adventures - Activate Your Life
1 stars 0 forks source link

Initial Certificate/Rinkeby Faucet Lambda #129

Open joeb000 opened 4 years ago

joeb000 commented 4 years ago

Create new lambda function for the initial log in flow. The lambda will return a signed certificate. The lambda will also be responsible for sending a small amount of rinkeby eth to the user's address if they have a 0 balance.

Input:

{
    "userAddress": "<address of user>"
}

Output:

{
    "certificate": {
        "networkId": 4,
        "type": "erc20",
        "address": "0x290B03254fbB409145F7F51a7CBEfeD7539AE1C4",
        "id": "0x5e604fa72dce72bbaef20bbeb2a82dcbeb98e3b13306d875f056a0aa7fcee0d5",
        "signature": "0x2cd26e893ad1d6f32743be4be9beced0e84651f09751183a8fd20b64b31c8736485cb63f09a45b63e12996afa389f043d059a64b1ae9bf776041d58b095147831b"
    }
}

Note that this will only work on rinkeby.

joeb000 commented 4 years ago

Lambda has been created.

API Endpoint: https://cwa95xpep8.execute-api.us-east-1.amazonaws.com/dev/rapid-faucet-signer

Accepts a POST message with a JSON object body described above.

@KamesCG