wallet/exportAccount
Exports the keys to the default account, or the named account if account
is specified.
The spendingKey
will be null in the response if viewOnly = true
or if exporting a view-only account.
Request
{
account?: string
viewOnly?: boolean
format?: AccountFormat
language?: LanguageKey
}
Response
If no format is specified, the legacy RpcAccountImport
type will be returned. Otherwise, the RPC will serialize the account into a string of the desired format.
{
account: string | RpcAccountImport | null
}
RPC Objects: