libra-sdk-mol
Version:
Javascript SDK for Libra Network and Move Smart Contract powered by MoveOnLibra OpenAPI
208 lines (144 loc) • 4.88 kB
Markdown
Method | HTTP request | Description
------------- | ------------- | -------------
[**getAccountEventsSent**](event_api.md
[**getAccountEventsReceived**](event_api.md
[**getAccountEventsLatestSent**](event_api.md
[**getAccountEventsLatestReceived**](event_api.md
[**getAccountEvents**](event_api.md
[**getAccountEventsLatest**](event_api.md
<br/><hr/>
Get events sent from this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEventsSent(address, start_event_seq_number, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**start_event_seq_number** | **number**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)
<br/><hr/>
Get events received from this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEventsReceived(address, start_event_seq_number, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**start_event_seq_number** | **number**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)
<br/><hr/>
Get latest events sent from this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEventsLatestSent(address, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)
<br/><hr/>
Get latest events received from this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEventsLatestReceived(address, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)
<br/><hr/>
Get events both sent and received of this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEvents(address, start_event_seq_number, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**start_event_seq_number** | **number**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)
<br/><hr/>
Get latest events both sent and received of this account by address
```javascript
const appkey = "*****" // your app key
var client = new LibraClient("testnet", appkey);
try{
data = await client.EventAPI.getAccountEventsLatest(address, limit);
console.log(data) //List of Events
} catch (error) {
console.log(error);
}
```
Name | Type | Description
------------- | ------------- | -------------
**address** | **string**|
**limit** | **number**|
| |
[**ContractEvent**](../ContractEvent.md)