Create Challenge
POST/api/challenges
This endpoint creates a challenge for the user to sign to verify ownership of their web3 address. By signing the message actions such as creating a funding source can be performed.
Request
- application/json
Body
required
Possible values: [claim-web3-address
]
The purpose of the challenge.
Possible values: [polygon-mainnet
, polygon-amoy
, arbitrum-sepolia
, arbitrum-mainnet
]
The blockchain network associated with the web3 address.
The web3 address to which the challenge is directed.
Responses
- 200
- 403
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
The unique identifier of the challenge.
Possible values: [claim-web3-address
]
The purpose of the challenge.
The web3 address to which the challenge is directed.
Possible values: [polygon-mainnet
, polygon-amoy
, arbitrum-sepolia
, arbitrum-mainnet
]
The blockchain network associated with the web3 address.
The description of the challenge.
The time the challenge expires.
The time the challenge was created.
The message to be signed by the web3 address owner.
{
"id": "GlSDzZHcxrSDeJbKu",
"purpose": "claim-web3-address",
"address": "0x123...",
"network": "polygon-mainnet",
"description": "To verify ownership of the web3 address....",
"expiresAt": "2024-03-20T08:20:00.000Z",
"createdAt": "2024-03-20T08:20:00.000Z",
"message": "To verify ownership of the web3 address ..."
}
INVALID_CHAIN Chain not supported.
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}