Ir diretamente para o conteúdo principal

Stellar QuickStart

Atualizado em
Aug 07, 2026

The quickest way to start building on Stellar with Quicknode is by sending a JSON-RPC request to your endpoint. In this quickstart, you'll create an endpoint, copy its provider URL, and make your first request. Code samples are available in cURL as well as other popular programming languages.

Get Your Stellar Endpoint

1

Criar uma Quicknode

Inscreve-te aqui, se ainda não o fizeste.

2

Aceda ao seu painel de controlo

Open the Endpoints dashboard from the left sidebar menu to manage all your blockchain endpoints

3

Criar um novo endpoint

Click Create an Endpoint in the top-right corner, select Stellar as your blockchain, then select your preferred network

4

Copie os URLs do seu fornecedor

Tenha a URL HTTP à mão. Vai precisar dela nas solicitações que se seguem.

Saiba mais sobre o painel de controlo

Para um guia detalhado do Quicknode do Quicknode , consulte o nosso guia

Envie o seu primeiro pedido

Your endpoint is ready. Now, let's make your first call to the Stellar network. We'll use the getLatestLedger method, which retrieves information about the latest ledger on the network. Selecione o seu idioma preferido e siga os passos abaixo para enviar o seu primeiro pedido.


1

Verificar a instalação do cURL

Most *nix based systems have cURL support out of the box. Open your terminal and check the cURL version by running the command below:

curl --versão
2

Send a JSON-RPC request

In your terminal, copy and paste the following cURL command to retrieve the latest ledger information:

curl --location 'YOUR_QUICKNODE_ENDPOINT_URL/' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 8675309,
"method": "getLatestLedger"
}'
3

Sample Response

{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"sequence": 12345678,
"hash": "abc123...",
"prevHash": "def456...",
"transactionCount": 42,
"operationCount": 128
}
}

If you want to continue learning about making API requests, check out our guides and sample apps.