ForAdmin
set_wallet
Basic Information
Brief Description
- Used to synchronize wallet accounts configured in the Lp database and corresponding Token information to the ChainClient Wallet module.
- When you create a Bridge, the wallet and Token relationships will be automatically generated, initiated by LpAdmin.
- secret_vault only holds one storage Key, through which private keys can be read from the secret_vault.
Request URL
http://chain-client-evm--server-:9100/evm-client-/lpnode_admin_panel/set_walletExample:http://chain-client-evm-bsc-server-9006:9100/evm-client-9006/lpnode_admin_panel/set_wallet
Request Method
- POST
Request Parameters
| Parameter Name | Mandatory | Type | Explanation | Example Value |
|---|---|---|---|---|
| wallet_name | Yes | string | Name of the wallet | "TestWallet1" |
| can_sign_712 | Yes | bool | Supports signing with EIP-712 | true |
| can_sign | Yes | bool | Supports signing | true |
| account_id | No | string | Account ID | "" |
| private_key | Yes | string | Private key | "1730203512766742382" |
| address | Yes | string | Wallet address | "0x1E1f3324f5482bACeA3E07978278624F28******" |
| type | Yes | string | Type of the wallet | "secret_vault" |
| vault_host_type | No | string | Type of vault host | "" |
| vault_name | Yes | string | Name of the vault | "0x1e1f3324f5482bacea3e07978278624f28******_1730203512766744602" |
| secert_id | Yes | string | Secret ID | "0x1e1f3324f5482bacea3e07978278624f28******_1730203512766744602" |
| vault_secert_type | No | string | Type of vault secret | "" |
| token_list | Yes | array | List of tokens | ["0x0000000000000000000000000000000000000000", "0xacda8bf66c2cadac9e99aa1aa75743f536e71094", "0x57e73db0eebd89f722e064d4c209f86eba9daeec", "0x0000000000000000000000000000000000000000"] |
Successful Response Example
json
{ "code": 0, "message": "set ok" }Parameter Description for Successful Response
code: Status codemessage: Return message