Note: Create an account before using the APIs
Note: Website direct menu (please login before):
Mainnet Telegram:
https://dconecrypto.finance/DC_TelegramWalletsMainnet Discord:
https://dconecrypto.finance/DC_DiscordWalletsNetwork: Mainnet
Endpoint: https://dconecrypto-mainnet.dconecrypto.finance
Authorization: Bearer {{accessToken}}
Example api request:
curl --location '{{domain}}/api/TokenAuth/Authenticate' \
--header 'Content-Type: application/json' \
--data '{
"userNameOrEmailAddress": "",
"password": "",
"rememberClient": true
}'
Example api Authenticate responses
{
"accessToken": "string",
"encryptedAccessToken": "string",
"expireInSeconds": 0,
"shouldResetPassword": true,
"passwordResetCode": "string",
"userId": 0,
"requiresTwoFactorVerification": true,
"twoFactorAuthProviders": ["string"],
"twoFactorRememberClientToken": "string",
"returnUrl": "string",
"refreshToken": "string",
"refreshTokenExpireInSeconds": 0
}
"CreateOrEdit"
apiExample api request:
curl --location '{{domain}}/api/services/app/DC_TelegramWallets/GetAllUserForTableDropdown' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": [
{
"id": 1,
"displayName": "dconecrypto"
}
],
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Security code is 6 digits long & valid for 2 minutes
Required fields to enter
GetAllUserForTableDropdown
)Example api request:
curl --location '{{domain}}/api/services/app/DC_TelegramWallets/TelegramSendOTP' \
--header 'Authorization: Bearer {{accessToken}}' \
--data '{
"telegramId": 806901872,
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"userId": 1,
"telegramCodeOTP": "",
"id": ""
}'
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
When a payment is detected in the stake address, it will be sent information to Telegram
GetAllUserForTableDropdown
)TelegramSendOTP
)Example api request:
curl --location '{{domain}}/api/services/app/DC_TelegramWallets/CreateOrEdit' \
--header 'Authorization: Bearer {{accessToken}}' \
--data '{
"telegramId": 806901872,
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"userId": 1,
"telegramCodeOTP": "473653",
"id": ""
}'
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Id
field is taken from the API GetAll
)Example api request:
curl --location --request DELETE '{{domain}}/api/services/app/DC_TelegramWallets/Delete?Id=0b28648a-4e35-4670-e92b-08db2ba3d184' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Example api request:
curl --location '{{domain}}/api/services/app/DC_TelegramWallets/GetAll' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": {
"totalCount": 1,
"items": [
{
"dC_TelegramWallet": {
"telegramId": 806901872,
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"userId": 1,
"id": "0b28648a-4e35-4670-e92b-08db2ba3d184"
},
"userName": "dconecrypto"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
"CreateOrEdit"
apiExample api request:
curl --location '{{domain}}/api/services/app/DC_DiscordWallets/GetAllUserForTableDropdown' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": [
{
"id": 1,
"displayName": "dconecrypto"
}
],
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Security code is 6 digits long & valid for 2 minutes
Required fields to enter
GetAllUserForTableDropdown
)Example api request:
curl --location '{{domain}}/api/services/app/DC_DiscordWallets/DiscordWebhookSendOTP' \
--header 'Authorization: Bearer {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"discordId": "Your display name",
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"webhookUrl": "https://discord.com/api/webhooks/1079715947830579231/5Yi-I3Anq1SMrjIz6Ka5SfcuhSpRi4Lz0rXIdc7pO7VpVV34fPSgFYZS6utkTqcQ30ur",
"discordStatus": true,
"userId": 1,
"discordCodeOTP": "",
"id": ""
}'
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
When a payment is detected in the stake address, it will be sent information to Discord
GetAllUserForTableDropdown
)DiscordWebhookSendOTP
)Example api request:
curl --location '{{domain}}/api/services/app/DC_DiscordWallets/CreateOrEdit' \
--header 'Authorization: Bearer {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"discordId": "Your display name",
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"webhookUrl": "https://discord.com/api/webhooks/1079715947830579231/5Yi-I3Anq1SMrjIz6Ka5SfcuhSpRi4Lz0rXIdc7pO7VpVV34fPSgFYZS6utkTqcQ30ur",
"discordStatus": true,
"userId": 1,
"discordCodeOTP": "310379",
"id": ""
}'
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Id
field is taken from the API GetAll
)Example api request:
curl --location --request DELETE '{{domain}}/api/services/app/DC_DiscordWallets/Delete?Id=719893f4-e3d4-410a-6803-08db262d5910' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Example api request:
curl --location '{{domain}}/api/services/app/DC_DiscordWallets/GetAll' \
--header 'Authorization: Bearer {{accessToken}}' \
--data ''
Example api response:
{
"result": {
"totalCount": 1,
"items": [
{
"dC_DiscordWallet": {
"discordId": "DCOne Crypto",
"stakeAddress": "stake1782cckupa4zyp95edhghqwegr5spyglt7dsu5wpqsrkdaxcmhyjr5",
"webhookUrl": "https://discord.com/api/webhooks/1079715947830579231/5Yi-I3Anq1SMrjIz6Ka5SfcuhSpRi4Lz0rXIdc7pO7VpVV34fPSgFYZS6utkTqcQ30ur",
"discordStatus": true,
"userId": 1,
"id": "719893f4-e3d4-410a-6803-08db262d5910"
},
"userName": "dconecrypto"
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Wallet address already exists",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": false,
"__abp": true
}
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "Discord code otp error",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": false,
"__abp": true
}