Auth
POSThttps://api.fuse.io/api/v2/smart-wallets/auth
Authenticate user using signed data standard EIP-191
Request
Query Parameters
apiKey string
(Required) Your Public API key
Example: {{publicKey}}
- application/json
Body
hash string
signature string
ownerAddress string
smartWalletAddress string
Responses
- 201
- 400
- 403
Created
- application/json
- Schema
- Example (from schema)
Schema
jwt string
{
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvd25lckFkZHJlc3MiOiIweDgwOUI3ODM3MWY1MGYyOEQyQzYxRjYzZTQ4YjU4YjdFZTA1M0UzRWEiLCJwcm9qZWN0SWQiOiI2M2NkMWJjMWQxOGMxNjQyMmJiOGMwYzMiLCJpYXQiOjE2NzUzMjcxOTR9.-iWIEN6OLyCI4j5WOA8V2mH3KQtrmEoUGhIS4migV9g"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
statusCode integer
errorMessage string
path string
{
"statusCode": 400,
"errorMessage": "Owner Address does not match recovered address in signature",
"path": "/api/v2/smart-wallets/auth?apiKey={{publicKey}}"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
statusCode integer
errorMessage string
path string
{
"statusCode": 403,
"errorMessage": "Forbidden resource",
"path": "/api/v2/smart-wallets/auth?apiKey={{publicKey}}"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.fuse.io/api/v2/smart-wallets/auth' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"hash": "0xdf6d23a8155755395ba2cf5ae9b18b5988f49aeb907f267525975832d544c88f",
"signature": "0xd773c543f1702629f0dfe2f788cc46a56bd504e1eb25bb26bdd4983d928440302f402cc3183c98814e6d467a00f969e238604a74cc5a3d2ec057d937ceec1ba71c",
"ownerAddress": "0x61Cda92886f6aA817587bd190D77fA08a14A1be1",
"smartWalletAddress": "0x5bbea139c1b1b32cf7b5c7fd1d1ff802de006117"
}'
ResponseClear