Constructor
new GatewayServer(sdk, serverUrl, opts)
Create a new Gateway instance.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk |
ShelfNetwork
|
Parent SDK instance. |
||||||||||||||||||||
serverUrl |
string
|
Gateway URL. |
||||||||||||||||||||
opts |
Object
|
|
Classes
Methods
blacklistAccount(opts) → {JsonApiResponse}
Blacklist an account
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
Returns:
- Type:
-
JsonApiResponse
getAccountsBlacklist() → {JsonApiResponse}
Returns all blacklisted accounts
- Source:
Returns:
- Type:
-
JsonApiResponse
unblacklistAccount(id) → {JsonApiResponse}
Remove an account from the unblacklist
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
account to unblacklist |
Returns:
- Type:
-
JsonApiResponse