Lấy vị trí CLMM bị khóa của một ví
curl --request GET \
--url https://owner-v1.raydium.io/position/clmm-lock/{owner}import requests
url = "https://owner-v1.raydium.io/position/clmm-lock/{owner}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://owner-v1.raydium.io/position/clmm-lock/{owner}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://owner-v1.raydium.io/position/clmm-lock/{owner}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://owner-v1.raydium.io/position/clmm-lock/{owner}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://owner-v1.raydium.io/position/clmm-lock/{owner}")
.asString();require 'uri'
require 'net/http'
url = URI("https://owner-v1.raydium.io/position/clmm-lock/{owner}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{}{
"id": "<string>",
"success": false
}Position
Lấy vị trí CLMM bị khóa của một ví
Lấy tất cả vị trí Concentrated Liquidity Market Maker (CLMM) bị khóa được sở hữu bởi ví này. Trả về trạng thái vị trí bao gồm số lượng bị khóa, thời gian kết thúc khóa, và phí có thể nhận được.
GET
/
position
/
clmm-lock
/
{owner}
Lấy vị trí CLMM bị khóa của một ví
curl --request GET \
--url https://owner-v1.raydium.io/position/clmm-lock/{owner}import requests
url = "https://owner-v1.raydium.io/position/clmm-lock/{owner}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://owner-v1.raydium.io/position/clmm-lock/{owner}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://owner-v1.raydium.io/position/clmm-lock/{owner}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://owner-v1.raydium.io/position/clmm-lock/{owner}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://owner-v1.raydium.io/position/clmm-lock/{owner}")
.asString();require 'uri'
require 'net/http'
url = URI("https://owner-v1.raydium.io/position/clmm-lock/{owner}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{}{
"id": "<string>",
"success": false
}Tham số đường dẫn
Khóa công khai ví (base58)
Phản hồi
Success
Cấu trúc dữ liệu vị trí bị khóa
Trang này có hữu ích không?
⌘I

