Set user address

End-user wallet address can be set by two approaches:

  • Customer authenticates via Metamask

  • Server returns customer address stated on operator's end

The first one does not imply any manipulations on operator's end as Metamask integration is implemented in Rewind protocol.

The second approach requires a call to the method that connects user wallet to user:

curl -X POST -H 'content-type:application/json' \
    -H 'X-Rewind-Api: AaaAaaAaaAaaAaa' \
    -H 'X-Rewind-Signature: cad9e7e5a80af049a2b23c605e3806a3fb7cd56e795931b853976197474ac96767d33c80b17088debd90b603e3261ba880cf1720bab589c71c958975b1f4ada0' \
    -d '{"foreignId":"testUser0001","address":"0xe3895dc03e7a9a4fc37033b8c1f0e117a617aba4"}' \
    https://app.demo.rewindprotocol.com/api/v1/clients/add-wallet-operator

Last updated