Generate wallets
curl --request POST \
--url https://dev.api.withconvexity.com/v1/wallet/hd/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"chainType": "EVM",
"purpose": "deposit"
}
'import requests
url = "https://dev.api.withconvexity.com/v1/wallet/hd/generate"
payload = {
"chainType": "EVM",
"purpose": "deposit"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({chainType: 'EVM', purpose: 'deposit'})
};
fetch('https://dev.api.withconvexity.com/v1/wallet/hd/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"message": "Wallets generated successfully",
"data": [
{
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"chainType": "EVM",
"isActive": true,
"addressIndex": 10
},
{
"address": "0x9e1d5B0F3aA4C2e88b7B1c2D3E4F5a6B7c8D9e0F",
"chainType": "EVM",
"isActive": true,
"addressIndex": 11
}
]
}Wallet
Generate wallets
Derives one or more new addresses on the business HD tree. Requires the wallet.hd.generate capability and an Idempotency-Key header. See Idempotency.
POST
/
v1
/
wallet
/
hd
/
generate
Generate wallets
curl --request POST \
--url https://dev.api.withconvexity.com/v1/wallet/hd/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"chainType": "EVM",
"purpose": "deposit"
}
'import requests
url = "https://dev.api.withconvexity.com/v1/wallet/hd/generate"
payload = {
"chainType": "EVM",
"purpose": "deposit"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({chainType: 'EVM', purpose: 'deposit'})
};
fetch('https://dev.api.withconvexity.com/v1/wallet/hd/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"message": "Wallets generated successfully",
"data": [
{
"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
"chainType": "EVM",
"isActive": true,
"addressIndex": 10
},
{
"address": "0x9e1d5B0F3aA4C2e88b7B1c2D3E4F5a6B7c8D9e0F",
"chainType": "EVM",
"isActive": true,
"addressIndex": 11
}
]
}Authorizations
OAuth 2.0 access token from Auth-Edge.
Headers
Unique client-generated key (use a UUID) that makes this request safe to retry. A retry sent with the same key returns the original result instead of submitting again. See Idempotency.
Body
application/json
Response
OK
The response is of type object.
