Users
Last updated
Last updated
Users controller have 2 endpoints:
GET /me
Return data about the current user. It include fields: user address, and array vector collections with id, smart contract address, balance and boolean field “containsData” which indicate have this collection data or not
Example request:
Example response:
!Id from vector collection using in another endpoints
POST /withdraw/{withdrawAmount}/{vectorCollectionId}
This endpoint returns necessary data for smart contract to withdraw funds from your vector collection smart contract. It includes your address, amount in decimals, signature, timestamp in milliseconds while current signature is valid and databaseAddress(your vector collection smart contract address).
In summary, it returns all parameters which are used for generating signature and signature itself. Signature generated by this pattern -
address + databaseAddress + amount + validToTimestampInMs
Example request:
Example response: