ankr-network / ankr-docs Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://ankr.com/docs/
Home Page: https://ankr.com/docs/
It seems like the roadmap link here links to a non-existent page.
RPC endpoint: https://rpc.ankr.com/bsc
When I call eth.getGasPrice(), the suggested gas price returns inconsistent results from 1GWEI to 5GWEI, while the correct return should be 3GWEI (please check https://bsc-dataseed.binance.org/) for the time being. This would cause some problems for end users who use this RPC endpoint in front end codes.
Consider adding these to Postman and linking to them.
Alternatively, test them and add to docs directly
Your docs are out of date, AnkrscanProvider no longer exists, should be AnkrProvider. Also, add some docs with error codes please.
The breadcrumbs in our docs don't do anything when we click on them. Aren't they supposed to be clickable? They should let me easily go back to anything in that list when I click on it. But right now it's just a piece of text that doesn't do anything. Only the home button works.
Is it possible to configure ankr_getTokenHoldersCount to sort the response by balance?
Surely it would make sense for the response to default to returning the biggest holders first...
I can see other methods have a "descOrder" boolean option.
Thanks :)
ankr_getTransactionsByAddress method
Works terribly.
Troubled blockchains:
title
Content description
Tag your content
Publication
Skill level
Currently top level navigation links don't link to most useful content from a user perspective.
Consider revising Sidebar sections in response to user feedback.
I would like to ask if the solana chain in Ankr can support WebSocket access. We want to subscribe to transactions through wss instead of requesting transaction history through RPC.
Hello Ankr Team,
I get this error when calling the avalanche c chain rpc endpoint when I want to get the balance of an address. The same method works well with other EVM enpoints:
rpc: service/method request ill-formed: "eth_getBalance"
Regards
This is my tutorial
Hi,
Do you give bounty for XSS injection ?
Best regards,
Akincibor.eth
Filecoin.MpoolPush
need write permission
Add Ethereum Sepolia Testnet support for Advanced API.
https://www.ankr.com/docs/advanced-api/overview/#chains-supported
Multiple RPC providers that support Gnosis are using Nethermind as a client, Ankr being one of those. There is an open ticket on Nethermind (NethermindEth/nethermind#5936) related to the trace_transaction
method where multiple RPC providers either return Not Found
or fail with an exception, while Ankr is able to produce the correct result.
As part of the debugging process on Nethermind, it would be really useful if you could share which options are you using to run Nethermind in your public RPC (https://rpc.ankr.com/gnosis). The only information that we have right now is the result of web3_clientVersion
which is Nethermind/v1.20.1+9f39c0c7/linux-x64/dotnet7.0.9
, but this is not enough.
This tutorial will demonstrate the following processes:
Specifications | Hardware Requirements |
---|---|
System | Mac, Linux, or Windows machine with the latest operating system (OS) installed |
Server OS | Linux Ubuntu |
Free Hard Drive Space |
2 TB |
RAM | 16 GB |
Specifications | Software Requirements |
---|---|
Terminal Emulator |
- Linux: Terminal (native) - Mac OS: Terminal (native) :: Termius (free / paid) - Windows: Windows Terminal (native) :: PuTTy (free) |
Recommended Settings |
- SSH Enabled - TDP/UDP traffic enabled |
Virtual Machine (Optional) |
- Ubuntu Desktop - Ubuntu Server |
To access the remote server, the user must enable Secure Shell (SSH) on their system.
# Enable SSH
sudo systemsetup -setremotelogin on
Password: [*****] # System password
# Disable SSH
sudo systemsetup -setremotelogin off
# Log in with your server admin credentials
ssh <your_username>@<server_ip_address>
Password: [*****]
Tip: Press CTRL+D
at anytime to suspend the connection.
# Update Linux OS
# Upgrade packages
# Remove outdated programs
sudo apt update && sudo apt-dist upgrade -y && sudo apt autoremove -y
# Download & extract the latest version of Go
# Current: v1.17.8
wget -c https://go.dev/dl/go1.17.8.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.17.8.linux-amd64.tar.gz
# Create a new directory
# Set the $GOPATH environment variable
# Set the $PATH variable to include $GOROOT and $GOPATH
mkdir ~/.go
GOROOT=/usr/local/go && GOPATH=~/.go && PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# Replace existing Go version with the latest version
sudo update-alternatives --install "/usr/bin/go" "go" "/usr/local/go/bin/go" 0 && update-alternatives --set go /usr/local/go/bin/go
# Check for updated version
go version
mkdir ~/srv/svc && cd srv/svc
# Run as super ('sudo') user
apt install snap
apt install npm
apt install git
apt install make
apt install mdadm
# Install Axel with Snap package
snap install axel
apt install build-essential
git clone https://github.com/ledgerwatch/erigon --recursive
mkdir erigon && cd erigon
make all
cd build/bin
echo $PATH
ls -ai
sudo cp ./* /usr/local/bin
cd ~/srv/svc/erigon/
cd ..
which erigon
erigon --help
sudo apt install fail2ban -y
# Check the Ubuntu Firewall (ufw) status
# Activate Ubuntu Firewall
sudo ufw status
sudo ufw allow ssh
Important: This step will likely take a while to complete.
erigon --chain=bsc --datadir=/srv/svc --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --private.api.addr=0.0.0.0:9090 --pprof --pprof.addr=0.0.0.0 --pprof.port=6061
nohup bash -c 'erigon --chain=bsc --datadir=/srv/svc --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --private.api.addr=0.0.0.0:9090 --pprof --pprof.addr=0.0.0.0 --pprof.port=6061'
wget -O /tmp/netdata-kickstart.sh...
The ankr_getTokenHolders
is not returning holders ordered by balance.
Is this by design? What is the reasoning behind it?
I would really like to have an endpoint that returns token holders sorted by balance.
Basically I want to get the top xx holders for a token. But with the current behaviour I would have to query all token holders first (which could be more than one request as the page size is 10k max). Then sort them myself by balance.
Looks like this can be handled more easily server side
Here is a getholders call example:
curl --request POST \
--url 'https://rpc.ankr.com/multichain/<key>/?ankr_getTokenHolders=' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "ankr_getTokenHolders",
"params": {
"blockchain": "eth",
"contractAddress": "0x9F9c8ec3534c3cE16F928381372BfbFBFb9F4D24",
"pageSize": 10
},
"id": 1
}
'
Returns an array with a seamingly random sorting. Maybe it's listing oldest holders first, not sure.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockchain": "eth",
"contractAddress": "0x9f9c8ec3534c3ce16f928381372bfbfbfb9f4d24",
"tokenDecimals": 18,
"holders": [
{
"holderAddress": "0x000000000000000000000000000000000000dead",
"balance": "0.000000000000000287",
"balanceRawInteger": "287"
},
{
"holderAddress": "0x000000000000084e91743124a982076c59f10084",
"balance": "0.000000000000000001",
"balanceRawInteger": "1"
},
{
"holderAddress": "0x000000000000294a0d3b43ec78199a84587ae012",
"balance": "0.000000000000000006",
"balanceRawInteger": "6"
},
{
"holderAddress": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",
"balance": "0.000000004028533483",
"balanceRawInteger": "4028533483"
},
{
"holderAddress": "0x000000000005af2ddc1a93a03e9b7014064d3b8d",
"balance": "0.000000000000000001",
"balanceRawInteger": "1"
},
{
"holderAddress": "0x0000000000208d4805eb97db796e74b48547445d",
"balance": "0.00000000000015216",
"balanceRawInteger": "152160"
},
{
"holderAddress": "0x000000000035b5e5ad9019092c665357240f594e",
"balance": "0.000000000000000065",
"balanceRawInteger": "65"
},
{
"holderAddress": "0x00000000003b3cc22af3ae1eac0440bcee416b40",
"balance": "0.033757757619980131",
"balanceRawInteger": "33757757619980131"
},
{
"holderAddress": "0x00000000007079010d6e70a9b6e6d70a43f58300",
"balance": "15.238310408853462243",
"balanceRawInteger": "15238310408853462243"
},
{
"holderAddress": "0x0000000000710a9c1f6db5f504be77ffb3b583ec",
"balance": "0.000000000000000001",
"balanceRawInteger": "1"
}
],
"holdersCount": 7879,
"nextPageToken": "HUAk46AT4FNtnkuGjueMtqGagGMwaHR5bvyvnCf7u84StLsWcNGNUQ8YSzPBX4Fx9hnPzNvPuSHiZZDjtTZ",
"syncStatus": {
"timestamp": 1711217555,
"lag": "-4m",
"status": "synced"
}
}
}
I have already made the payment and upgraded to advanced, but why would I still report the following error
Get the token price result: {'jsonrpc': '2.0', 'id': None, 'error': {'message': 'rate limit exceeded', 'data': 'You’ve reached the request limit for free users! Top up your balance to unlock Premium now to skip interruptions and access advanced features https://www.ankr.com/rpc/account/', 'code': -31999}}
Hello my dear Dev colleagues,
I recently tried your Advanced Token API and it's great!
There's one optimization idea for your 'ankr_getTokenPriceHistory'-method though, as I sometimes didn't receive the right token prices on certain requests.
I suggest, that you could implement a 'pairAddress' parameter besides or instead of the already used 'contractAddress' parameter to specify exactly of which token pair liquidity pool the token price has to be fetched from (as there are often multiple and also inofficial pools with totally different token prices) .
Greetings from Germany
Peet
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.