Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
24 views

Find balance of an address/contract at a given block / date

Do we have any api mechanism to find the balance for an address/contract for a given blockheight or till a given date.
1
vote
1answer
27 views

Cors issue when running docker using babylonnet.sh

I'm running a Tezos network locally using babylonnet.sh. Works fine, can query for example ./babylonnet.sh client list known addresses. Also works in browser for example http://127.0.0.1:8732/chains/...
1
vote
2answers
73 views

How to retrieve data from smart-contract using javascript?

I have stored data that I would like to retrieve from a deployed smart-contract. The storage structure was defined using SmartPy: def __init__(self): self.init(bmap=sp.big_map(tkey=sp....
1
vote
1answer
43 views

List of all accounts sorted by balance

Since tzscan.io is offline, I can't find a public API which returns a list of all accounts sorted by balance descending (total amount of tez) eg. whales. I can't find this in tzstats, tezblock nor ...
3
votes
1answer
72 views

TzStats: delegators list

After tzscan shutdown, I am trying to use tzstats as an alternative to calculate delegating rewards. Is there a way to get a list of delegators for a specific baking address and cycle using the ...
1
vote
1answer
26 views

Calculate total supply of XTZ for a given block

I want to build a real-time Tezos yearly/monthly inflation calculator that updates for every block. While I have the rewards calculation under control I don't know how to calculate the total XTZ ...
6
votes
1answer
142 views

Alternative to TzScan API

Because TzScan will shut down soon and I need an alternative API to help me to calculate delegators rewards. I reviewed Tezos.id API and I can't find the necessary functionality to help me with that. ...
1
vote
0answers
30 views

What's RPC api to get unconfirmed balance?

Is it possible to get unconfirmed balance through the rpc REST api? I didn't find any on the official documentation: https://tezos.gitlab.io/mainnet/api/rpc.html#get-block-id-context-contracts-...
3
votes
1answer
121 views

'Tezos' wallet addresses generation

Can someone please give me a step by step noob guide on how to create a number of (say 100) new addresses(public key hashes, starting with something like 'tz') for my tezos wallet?
3
votes
0answers
20 views

API codes from my Tezos node

I want to understand how I can extract the API codes from my working node to create a dashboard on my site. I am interested in such parameters as: [bakingAll] [bakingMiss] [bakingSteal] [...
4
votes
1answer
46 views

How do I get a list of all delegators a baker has, using only node local endpoints?

I'm currently using TzScan as a source of data about Tezos blockchain. Unfortunately, I am receiving many http errors from their API, making my products seem unreliable. So I decided to get the data ...
3
votes
1answer
69 views

Where is the reward operation for athens?

Athens amendment proposal was succesfully integrated as proto004 into the mainnet at level 458753. The first mined block can be seen here https://api6.tzscan.io//v3/block/...
1
vote
1answer
33 views

API documentation for tezos.org.sg?

I saw that one can use API from tezos.org.sg, for example https://node1.lax.tezos.org.sg:8080/v0/block/. However I'm having hard time finding documentation for that API. tzscan's API is not a problem ...
3
votes
0answers
11 views

API Ballots not working

The API : https://api6.tzscan.io/v3/ballots/11 is not working, I don't understand why. Tzscan API instructions : https://tzscan.io/api#operation/405
2
votes
1answer
37 views

Is there a TzScan API to find the number of Tezos Node?

I'm looking for an API to get the number of Tezos Node or the number of Bakers.
3
votes
0answers
34 views

getting off chain data on chain to smart contracts

Currently 80+% of smart contracts need off chain data, is there a solution to bring off chain data on chain to trigger for smart contracts? (oracles related)
3
votes
0answers
32 views

Is there a TzScan API to find the total number of delegated Tezos?

I'm looking for an API to get the total number of delegated Tezos. I already found an API to get the number of rolls delegated: https://api6.tzscan.io/v3/rolls_history/...
2
votes
0answers
51 views

Tzscan API not responsive [closed]

I have an issue with API requests from tzscan. When calling delegator_rewards in my PHP script, for instance: https://api6.tzscan.io/v3/delegator_rewards/KT1ALgpzePTQPsmbtybBhC3Kg6RNK8gTXUQi then ...
4
votes
2answers
81 views

Issue with API Request Cycle

I have an issue to request the Cycle Number from this API. I don't understand how to use the map to get the data from the last cycle only. const ul2 = document.getElementById('Cycle'); const url2 =...
4
votes
1answer
167 views

API Access HTML/Javascript problem

I have an issue trying to use javascript to get the circulating supply by requesting data from Tzscan API: HTML code to request the circulating supply: <!DOCTYPE html> <html> <head>...
3
votes
1answer
54 views

How do I get a list of all delegators of an address using TzScan API v3?

In TzScan.io API v3, I currently use https://api6.tzscan.io/v3/rewards_split/ endpoint to get a list of known delegators of an address. Occurs that using this method, the information is linked to a ...
2
votes
1answer
167 views

How do I get a list of the transactions of an address using TzScan API v3?

I've read the TzScan.io API documentation, but could not find an endpoint that allowed me to get a list of the transactions of an specific address. Considering that TzScan.io has already a transaction ...
4
votes
1answer
74 views

Is it possible to have a transaction operation in any operation's “contents”?

This questions is about the contents of an operation in the API responses from the node. I'm trying to identify all transactions in a given operation. Should I always scan for transactions in every ...
13
votes
2answers
111 views

Total amount of XTZ in existence

Is there an RPC to get the total amount of tezos in existence at some particular block (or cycle begin/end)?
10
votes
2answers
234 views

How do I query the Balance of a KT1 account Cycle by Cycle?

Is there a RPC in Tezos-client, that allows to query the Balance of a KT1 account cycle by cycle? I've tried it with this (TzScan Public-Node RPC): https://mainnet-node.tzscan.io/<block_id>/...
15
votes
1answer
112 views

How to query rewards of a specific KT1 account?

I want to know, how much rewards a specific KT1 Account earned since cycle 7. A good Example is the "Rewards Share" Tab of TzScan. https://tzscan.io/tz1Tnjaxk6tbAeC2TmMApPh8UsrEVQvhHvx5?default=...