Get Flash Layer info
Last updated
Last updated
Get Flash Layer Information
Request
GET /v1/flashlayer/info/{:id}
Property | Type | Description |
---|---|---|
Request Body
{}
Response
{
"flashlayer": {
"name": "freetrial",
"status": "STATUS_ACTIVE",
"settings": {
"blockTime": 2,
"gasless": true,
"fcfs": true,
"genesisAccounts": [],
"tokenDecimals": "18",
"tokenSymbol": "OAS",
"blockGasLimit": "30000000"
},
"resources": {
"rpc": "https://freetrial.alt.technology",
"explorer": "https://flashlayername-explorer.alt.technology",
"chainId": "5000460",
"rpcWs": "wss://freetrial.alt.technology"
},
"createdAt": "2023-08-14T13:12:17.595174Z",
"id": "1",
"tier": "FLASHLAYER_TIER_FREE_TRIAL"
}
}
## /v1/flashlayer/info/{id}
curl "https://dashboard-api.alt.technology/v1/flashlayer/info/{id}" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d $'{}'
package main
import (
"fmt"
"io"
"net/http"
"bytes"
)
func sendV1FlashlayerInfoId() {
// /v1/flashlayer/info/{id} (GET https://dashboard-api.alt.technology/v1/flashlayer/info/{id})
json := []byte(`{}`)
body := bytes.NewBuffer(json)
// Create client
client := &http.Client{}
// Create request
req, err := http.NewRequest("GET", "https://dashboard-api.alt.technology/v1/flashlayer/info/{id}", body)
// Headers
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer {access_token}")
// Fetch Request
resp, err := client.Do(req)
if err != nil {
fmt.Println("Failure : ", err)
}
// Read Response Body
respBody, _ := io.ReadAll(resp.Body)
// Display Results
fmt.Println("response Status : ", resp.Status)
fmt.Println("response Headers : ", resp.Header)
fmt.Println("response Body : ", string(respBody))
}
# Install the Python Requests library:
# `pip install requests`
#!/usr/bin/python3
import requests
import json
def send_request():
# /v1/flashlayer/info/{id}
# GET https://dashboard-api.alt.technology/v1/flashlayer/info/{id}
try:
response = requests.get(
url="https://dashboard-api.alt.technology/v1/flashlayer/info/{id}",
headers={
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {access_token}"
},
data=json.dumps({
})
)
print('Response HTTP Status Code: {status_code}'.format(
status_code=response.status_code))
print('Response HTTP Response Body: {content}'.format(
content=response.content))
except requests.exceptions.RequestException:
print('HTTP Request failed')
id
uint
Flash Layer ID