Lấy vị trí stake của một ví
curl --request GET \
--url https://owner-v1.raydium.io/position/stake/{owner}import requests
url = "https://owner-v1.raydium.io/position/stake/{owner}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://owner-v1.raydium.io/position/stake/{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/stake/{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/stake/{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/stake/{owner}")
.asString();require 'uri'
require 'net/http'
url = URI("https://owner-v1.raydium.io/position/stake/{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í stake của một ví
Lấy tất cả vị trí stake (AMM tiêu chuẩn hoặc CPMM) được sở hữu bởi ví này. Trả về dữ liệu vị trí được lưu vào bộ nhớ đệm bao gồm số lượng và phần thưởng.
GET
/
position
/
stake
/
{owner}
Lấy vị trí stake của một ví
curl --request GET \
--url https://owner-v1.raydium.io/position/stake/{owner}import requests
url = "https://owner-v1.raydium.io/position/stake/{owner}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://owner-v1.raydium.io/position/stake/{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/stake/{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/stake/{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/stake/{owner}")
.asString();require 'uri'
require 'net/http'
url = URI("https://owner-v1.raydium.io/position/stake/{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í (xem các phản hồi OwnerAPI)
Trang này có hữu ích không?
⌘I

