YieldGetProvider returns a Yield provider by provider ID.
curl --request POST \
--url https://trails-api.sequence.app/rpc/Trails/YieldGetProvider \
--header 'Content-Type: application/json' \
--data '
{
"providerId": "<string>"
}
'import requests
url = "https://trails-api.sequence.app/rpc/Trails/YieldGetProvider"
payload = { "providerId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({providerId: '<string>'})
};
fetch('https://trails-api.sequence.app/rpc/Trails/YieldGetProvider', 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://trails-api.sequence.app/rpc/Trails/YieldGetProvider",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'providerId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://trails-api.sequence.app/rpc/Trails/YieldGetProvider"
payload := strings.NewReader("{\n \"providerId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://trails-api.sequence.app/rpc/Trails/YieldGetProvider")
.header("Content-Type", "application/json")
.body("{\n \"providerId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://trails-api.sequence.app/rpc/Trails/YieldGetProvider")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"providerId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"name": "<string>",
"id": "<string>",
"logoURI": "<string>",
"description": "<string>",
"website": "<string>",
"tvlUsd": {},
"type": "<string>",
"supportsBeneficiary": true,
"references": [
"<string>"
]
}
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Earn
YieldGetProvider
POST
/
rpc
/
Trails
/
YieldGetProvider
YieldGetProvider returns a Yield provider by provider ID.
curl --request POST \
--url https://trails-api.sequence.app/rpc/Trails/YieldGetProvider \
--header 'Content-Type: application/json' \
--data '
{
"providerId": "<string>"
}
'import requests
url = "https://trails-api.sequence.app/rpc/Trails/YieldGetProvider"
payload = { "providerId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({providerId: '<string>'})
};
fetch('https://trails-api.sequence.app/rpc/Trails/YieldGetProvider', 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://trails-api.sequence.app/rpc/Trails/YieldGetProvider",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'providerId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://trails-api.sequence.app/rpc/Trails/YieldGetProvider"
payload := strings.NewReader("{\n \"providerId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://trails-api.sequence.app/rpc/Trails/YieldGetProvider")
.header("Content-Type", "application/json")
.body("{\n \"providerId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://trails-api.sequence.app/rpc/Trails/YieldGetProvider")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"providerId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"name": "<string>",
"id": "<string>",
"logoURI": "<string>",
"description": "<string>",
"website": "<string>",
"tvlUsd": {},
"type": "<string>",
"supportsBeneficiary": true,
"references": [
"<string>"
]
}
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Overview
TheYieldGetProvider endpoint returns a single yield provider by its ID. Use it to fetch full provider metadata (logo, description, website, TVL, supported standards, beneficiary support) when you already know the provider ID — for example, when rendering details for a market returned from YieldGetMarkets.
Request Parameters
Required Fields
- providerId (string): The yield provider ID (for example
"aave","morpho","yearn").
Response
- provider (
YieldProvider): The full provider object includingname,id,logoURI,description,website,tvlUsd,type,references, andsupportsBeneficiary.
Example
const response = await fetch('https://trails-api.sequence.app/rpc/Trails/YieldGetProvider', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Access-Key': 'YOUR_ACCESS_KEY'
},
body: JSON.stringify({ providerId: 'aave' })
});
const { provider } = await response.json();
console.log(provider.name, provider.tvlUsd);
Next Steps
YieldGetProviders
List all yield providers
YieldGetMarkets
List markets, optionally filtered by provider
Was this page helpful?
⌘I