API for LOCK.space international staking service
- Contact support to registrate your wallet name
- Create an address on selected blockchain (e.g. DeFiChain)
- Get the sign message from sign-message endpoint and sign it with the corresponding private key
- Register the user with the sign-up endpoint
- Now you can get your access token (with address & signature) with the sign-in endpoint
Before the user can stake he has to proceed a KYC.
-
Trigger the KYC endpoint for KYC registration
-
User has to do KYC
a) If the user is already verified (kycStatus =
Completed) at DFX.swiss with the same address you can transfer the KYC data after sign-in with the transfer endpoint at DFX API (use wallet nameLOCK.space)b) If not, the user can do KYC at LOCK. Get and open the KYC Link which you can get from KYC endpoint or user endpoint
-
Check with the user endpoint if KYC is finished (KYC status
LightorFull)
- Get the staking deposit address, id, information about fee, balance, min deposit, pending deposits, pending withdrawals etc. with the staking endpoint
-
To deposit you have to send the asset to the deposit address
-
Optional you can create a pending Deposit to improve the UX for the user with the deposit endpoint
-
Create a withdrawal with withdrawal endpoint to get the id and the signMessage
You can get all open drafts with the drafts endpoint
You can change the amount of the withdrawal with the amount endpoint and you get also a signMessage
-
Sign the signMessage to get a signature to approve the withdrawal
-
Sign the withdrawal (with the generated signature) with the sign endpoint
-
You can get the current APR/APY with the analytics/staking endpoint
-
You can get a compact history (json or csv) of transactions (withdrawals, deposits & rewards) with the compact endpoint
-
You can get a cointracking CSV of transactions (withdrawals, deposits & rewards) with the CT endpoint
-
You can get the user votes with the voting/votes endpoint
-
You can submit the user votes with the voting/votes endpoint
- LOCK.space is fully integrated in the DFX.swiss wallet