MindLake
1. connect() Method
Connect to Mind Lake while ensuring that all encryption keys are prepared and available. Prior to making any function calls within the SDK, execute this function as it serves as the entry point.
Parameters
walletPrivateKey
-str
: the private key of your walletchainID
-str
: the ID of the supported chain.appKey
-str
: used for authorization, allowing users of your application to gain access to Mind Lake. As a developer, you can apply for APP Keys from Mind Scan.
Returns
An object of . For more information.
Example
2. MindLake.ResultType
Every method call in the Mind Lake SDK returns an object of ResultType.
code
-int
: The return code of the method call. A return value of 0 indicates success, while non-zero values represent a specific error code.message
-str
: If the return code is non-zero, an error message will be provided to describe the specific error encountered during the method call.data
-any
: If a method call returns a result, it will be stored in thedata
field.
3. MindLake.DataType
The DataType
enum defines a comprehensive range of supported data types. This enum can be used in conjunction with the MindLake.DataLake.Column
class, which represents a single column in a table, to specify the data type of the column. By utilizing the DataType
enum, you can ensure that your data is stored in the appropriate format and can be processed correctly by the system.
Members
int4
int8
float4
float8
decimal
text
timestamp
Last updated