curl --request POST \
--url https://api.example.com/api/v1/wallet/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"network": "mainnet",
"ark_server": "<string>",
"ark_server_access_token": "<string>",
"birthday_height": 1,
"chain_source": {
"bitcoind": {
"bitcoind": "<string>",
"bitcoind_auth": {
"cookie": {
"cookie": "<string>"
}
}
}
},
"mnemonic": "<string>"
}
'{
"fingerprint": "<string>"
}Creates a new wallet with the specified Ark server and chain source configuration. Fails if a wallet already exists. Returns the wallet fingerprint on success.
curl --request POST \
--url https://api.example.com/api/v1/wallet/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"network": "mainnet",
"ark_server": "<string>",
"ark_server_access_token": "<string>",
"birthday_height": 1,
"chain_source": {
"bitcoind": {
"bitcoind": "<string>",
"bitcoind_auth": {
"cookie": {
"cookie": "<string>"
}
}
}
},
"mnemonic": "<string>"
}
'{
"fingerprint": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
Base64url-encoded auth token
The network to use for the wallet
mainnet, signet, mutinynet, regtest The Ark server to use for the wallet. Optional when a config.toml already exists in the datadir.
An access token for a private Ark server
An optional birthday height to start syncing the wallet from
x >= 0The chain source to use for the wallet. Optional when a config.toml already exists in the datadir.
Show child attributes
The optional mnemonic to use for the wallet
Wallet created successfully
Was this page helpful?