Members
Methods
create(opts, accountIdopt, passwordopt) → {JsonApiResponse}
Create an account.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Account options.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
password |
string
|
<optional> |
Desired password. |
Returns:
- Type:
-
JsonApiResponse
createStar(lotId, accountIdopt) → {JsonApiResponse}
Create star.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
lotId |
Number
|
Lot ID. |
||
accountId |
string
|
<optional> |
null |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
deleteStar(lotId, accountIdopt) → {JsonApiResponse}
Delete star.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
lotId |
Number
|
Lot ID. |
||
accountId |
string
|
<optional> |
null |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
get(accountIdopt) → {JsonApiResponse}
Get user's account.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
accountId |
sting
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
getAccounts(query) → {JsonApiResponse}
Get multiple accounts.
- Source:
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
query |
object
|
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getBidRequests(queryopt) → {JsonApiResponse}
Get account bid requests.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getCreateLotRequests(queryopt) → {JsonApiResponse}
Get account create lot requests.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getParticipationRequests(queryopt) → {JsonApiResponse}
Get account participation requests.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getSigner(signerId, accountIdopt) → {JsonApiResponse}
Get account signers.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
signerId |
sting
|
Signer ID. |
|
accountId |
sting
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
getSigners(accountIdopt) → {JsonApiResponse}
Get account signers.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
accountId |
string
|
<optional> |
null |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
getStars(queryopt, accountIdopt) → {JsonApiResponse}
Get account stars.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
||||||||||||
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
recover(email, token, newSigner)
Recover account.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
email |
string
|
User's email. |
token |
string
|
Recovery token. |
newSigner |
string
|
Public key of the new signer. |
requestRecovery(email)
Request account recovery.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
email |
string
|
User's email. |
resendEmailVerificationCode(accountIdopt)
Resend phone verification code.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
resendPhoneVerificationCode(accountIdopt)
Resend phone verification code.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
update(opts, accountIdopt) → {JsonApiResponse}
Update account details.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Account options.
|
|||||||||||||||||||||||||||||||||
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
Returns:
- Type:
-
JsonApiResponse
verifyEmail(token, accountIdopt)
Verify user's phone number.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
token |
string
|
6-digit token from SMS. |
|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |
verifyPhone(token, accountIdopt)
Verify user's phone number.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
token |
string
|
6-digit token from SMS. |
|
accountId |
string
|
<optional> |
User's account ID. Use account ID of the attached wallet by default. |