wallet/importAccount
The string is typically generated by the exportAccount
RPC, although the string can be manually generated with the sdk.
This endpoint also supports structured input.
The optional createdAt
field can be used to set the block sequence to start scanning from for the imported account. Note that, if the account received any transactions on a block before this sequence, then those transactions will not appear in the account's balance.
Request
{
account: RpcAccountImport | string
name?: string
rescan?: boolean
createdAt?: number
}
Rpc Objects:
Response
{
name: string;
isDefaultAccount: boolean;
}