Wallets
Crypto wallet API
Introduction
The Wallets API provides developers with functionality to manage and retrieve information related to crypto wallets with their accounts.
- Wallets:
- Obtain a detailed list of wallets linked to a specific API key.
- Fetch specific wallet details by querying with the wallet ID.
- Facilitate the creation of new wallets by submitting wallet information in the request body.
- Deletes a specific wallet by providing the wallet ID.
Post Wallets
POSThttps://api.adesic.com/v2/transactions/wallets
Create a new crypto wallet by providing the required wallet details. Upon a successful request, it returns a 201 status code along with the details of the created wallet.
Headers
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
Request Body
| Name | Type | Description |
|---|---|---|
| wallet* | object | Wallet details. |
| wallet.address* | string | The wallet address. |
| wallet.blockchain* | string | The blockchain the wallet is associated with. |
Response
201: Created Success
{
"id": "wal-123456785",
"userId": "usr-123456788",
"address": "some-addy",
"blockchain": "some-chain",
"createdAt": "2024-02-02T02:09:55.963",
"updatedAt": "2024-02-02T02:09:55.958"
}Get Wallets
GEThttps://api.adesic.com/v2/transactions/wallets
Retrieves all crypto wallets associated with the provided API key. Upon a successful request, it returns a 200 status code and a list of wallets.
Headers
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
Response
200: OK Success
[
{
"id": "wal-123456788",
"userId": "usr-123456788",
"address": "someAddress",
"blockchain": "ethereum",
"createdAt": "2024-01-30T15:06:08.568",
"updatedAt": "2024-01-30T15:06:08.563"
},
{
"id": "wal-123456785",
"userId": "usr-123456788",
"address": "1234568",
"blockchain": "bitcoin",
"createdAt": "2024-02-02T02:09:55.963",
"updatedAt": "2024-02-02T02:09:55.958"
}
]Get Wallet by ID
GEThttps://api.adesic.com/v2/transactions/wallets/{walletId}
Retrieves the details of a specific crypto wallet using its unique wallet ID. Upon a successful request, it returns a 200 status code and the details of the requested wallet.
Headers
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
Query Parameters
| Name | Type | Description |
|---|---|---|
| walletId* | string | Wallet Id |
Response
200: OK Success
{
"id": "wal-123456785",
"userId": "usr-123456788",
"address": "some-addy",
"blockchain": "bitcoin",
"createdAt": "2024-02-02T02:09:55.963",
"updatedAt": "2024-02-02T02:09:55.958"
}Delete Wallet by ID
DELETEhttps://api.adesic.com/v2/transactions/wallets/{walletId}
Deletes a specified crypto wallet using its unique wallet ID. Upon a successful request, it returns a 204 status code indicating that the wallet has been deleted.
Headers
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
Query Parameters
| Name | Type | Description |
|---|---|---|
| walletId* | string | Wallet Id |
Response
204: No Content
No ContentCopy & Paste Code
POST Wallets
cURL
curl -X POST \
-H "Content-Type: application/json" \
-H "api-key: your-api-key" \
-d '{
"wallet": {
"address": "0xsome-address",
"blockchain": "ethereum"
}
}' \
https://api.adesic.com/v2/transactions/walletsGET Wallets
cURL
curl -H "api-key: YOUR_API_KEY" "https://api.adesic.com/v2/transactions/wallets"Wallets Response Object
POST Wallets
Example URL: https://api.adesic.com/v2/transactions/wallets
{
"id": "wal-123456785",
"userId": "usr-123456788",
"address": "some-addy",
"blockchain": "some-chain",
"createdAt": "2024-02-02T02:09:55.963",
"updatedAt": "2024-02-02T02:09:55.958"
}Wallets Response Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| id | string | Wallet Id for the user. |
| userId | string | Unique user Id. |
| address | string | The crypto wallet address. |
| blockchain | string | The blockchain the wallet is on. |
| createdAt | string | The timestamp the wallet was created at. |
| updatedAt | string | The last timestamp the wallet was updated at. |