Skip to content

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

Request Method

  • POST

Request Parameters

Parameter NameMandatoryTypeExplanationExample Value
wallet_nameYesstringName of the wallet"TestWallet1"
can_sign_712YesboolSupports signing with EIP-712true
can_signYesboolSupports signingtrue
account_idNostringAccount ID""
private_keyYesstringPrivate key"1730203512766742382"
addressYesstringWallet address"0x1E1f3324f5482bACeA3E07978278624F28******"
typeYesstringType of the wallet"secret_vault"
vault_host_typeNostringType of vault host""
vault_nameYesstringName of the vault"0x1e1f3324f5482bacea3e07978278624f28******_1730203512766744602"
secert_idYesstringSecret ID"0x1e1f3324f5482bacea3e07978278624f28******_1730203512766744602"
vault_secert_typeNostringType of vault secret""
token_listYesarrayList of tokens["0x0000000000000000000000000000000000000000", "0xacda8bf66c2cadac9e99aa1aa75743f536e71094", "0x57e73db0eebd89f722e064d4c209f86eba9daeec", "0x0000000000000000000000000000000000000000"]

Successful Response Example

json
{ "code": 0, "message": "set ok" }

Parameter Description for Successful Response

  • code: Status code
  • message: Return message