CreateDelegatedWallet
Create a Delegated Wallet, given an owner wallet that controls it.
note
When building systems using Delegated Wallets, you should always assume that it's possible to get all Delegated Wallets by having the owner wallet address and vice versa. If you need to preserve higher privacy in your systems, prefer generating a unique owner address per each delegated wallet.
note
Delegated wallets can be created offline, in a deterministic way. If you prefer to create them offline, consider using decash-utils.
Request Parameters
Name | Type | Description |
---|---|---|
owner | string | The algorand address of the account that will manage the funds in the created Delegated Wallet. |
seed | number | OPTIONAL. The seed that will be used to create the delegated wallet. Each owner-seed pair corresponds to a different address. When empty, an incremental seed will be used. |
Responses
Regular response
Name | Type | Description |
---|---|---|
wallet | string | The algorand address of the created Delegated Wallet. |
seed | number | The seed that was used to create the Delegated Wallet. |
Validation rerors
Returned when the parameters are invalid
Name | Content |
---|---|
Status code | 400 |
errorId | INVALID_PARAMS |
message | Validation errors in CreateDelegatedWallet request. |
errors | Array of strings containing additional informations. |
Example Usage
const response = await fetch('https://delegator-dev01b.arringo.co/api-test/CreateDelegatedWallet', {
method: 'POST',
body: JSON.stringify({
owner: 'LX2XVJP7F5TQVOJ6DL4NPR5RH77XEG5US76WL7LIJL7OW6YPXDNPGIFWPM',
})
});
const data = await response.json();
Example Success Response
{
"wallet": "STYYW6RNT22UDQFTPYKKLCI6LHWQKDXIYY62LIU7SH3CUTEYY4XREEHGCA",
"seed": 0,
}