UpdateAccount with custom seed
The eddsaKey is generated by a keyseed, default format is Sign this message to access Loopring Exchange: %s with key nonce: %d
%s is exchange address
%d is nonce in Get api/v3/account
For example:
We also support custom keyseed when updateAccount
.
For example, you can change the string before 'with key nonce: 0' (must end with 'with key nonce: %d')
1. Update Account with keySeed
POST api: api/v3/account
Note: after updateAccount
, the nonce in Get api/v3/account will be incremented by 1
Please also refer to js sdk for updateAccount: https://github.com/Loopring/loopring_sdk/blob/master/src/tests/user.test.ts#L219
2. Get Account
Get API: api/v3/account
Then use the keySeed to generate eddsaKey.
Please refer to js sdk for generating EdDSA keypair: https://github.com/Loopring/loopring_sdk/blob/master/src/api/sign/sign_tools.ts#L70
Last updated