Skip to main content

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

NameTypeDescription
ownerstringThe algorand address of the account that will manage the funds in the created Delegated Wallet.
seednumberOPTIONAL. 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

NameTypeDescription
walletstringThe algorand address of the created Delegated Wallet.
seednumberThe seed that was used to create the Delegated Wallet.

Validation rerors

Returned when the parameters are invalid

NameContent
Status code400
errorIdINVALID_PARAMS
messageValidation errors in CreateDelegatedWallet request.
errorsArray 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,
}