Questions tagged [external-api]
The external-api tag has no usage guidance.
165
questions
0
votes
0
answers
52
views
Getting a 500 Error response when using estimate API endpoint
I am getting a 500 error when calling this endpoint. The safe exists. The transaction follows the API syntax.
curl -X 'POST' \
'https://safe-transaction-sepolia.safe.global/api/v1/safes/...
0
votes
1
answer
475
views
How can I create a script that retrieves the transaction history of an address and organizes the information on excel?
I have address 0x389505f098a29a994A3ed0e674f07cd451dde42C and I need to create an excel spreadsheet containing all the transactions from 2022 (roughly 40,000). Cannot download the csv report from ...
1
vote
3
answers
2k
views
Are there any public APIs for ENS lookup?
I want to add ENS support to an app I am building, and I am looking for a lightweight API which supports ENS to Ethereum address conversion.
All the documentation shows how you can do this on the ...
2
votes
2
answers
4k
views
Perform an automated transaction using 1inch API
To perform an automated 1 inch transaction I use these two functions.
It works well at first. Unfortunately, in the last few days I have always had the same errors:
Fail with error 'Return amount is ...
0
votes
1
answer
1k
views
Issues with 1inch swap API
I am trying to use 1inch swap API, but getting error most of the time. I'm trying to swap USDT to one custom token. The required allowance has already been provided.
I sometime get the response (even ...
0
votes
1
answer
1k
views
Code Example: Waiting for N blocks then running a method?
I'm new to Javascript and Etherjs. I'm trying to interact with a specific contract in the following way. The contract has two functions, hi and bye. I want to
first run contract.hi();, wait N blocks ...
0
votes
1
answer
359
views
Error creating contract after getting contract ABI from Etherscan API
I am trying to get the contract ABI using the Etherscan API, and then create a contract instance and call a method using web3.js. I am able to get the ABI from Etherscan but when creating the contract ...
0
votes
2
answers
327
views
Smart Contracts and API Calls: How to check API repeatedly without paying a fee?
I'm new to this entire space, so please bear with me.
I'm trying to create a betting app. I want people to sign the contract and say they'll put up some money that they'll either win or lose depending ...
1
vote
1
answer
2k
views
Is there any way to get list of all NFTs owned by an etherscan as shown on etherscan apart from monitoring Transfer even?
I want an api or something that can list all the nfts owned by an address, as it is shown on etherscan so I assume we can get that but not able to find that. Also I know that we can do that by ...
1
vote
2
answers
1k
views
How to peg value to token outside ethereum
I have an online game system. I issue some tokens through ethereum. How can I peg value of the tokens issued on ethereum to my game system, which is outside the ethereum eco system. (ie) The users ...
0
votes
1
answer
323
views
Questions about the fulfill function in the Chainlink API Call tutorial
I was going through the Chainlink tutorial on APIs and had some questions about the fulfill function in the contract below.
From how I understand it, the third argument of request object inside the ...
2
votes
1
answer
590
views
process.env.key is showing the actual api key in source code
In my js file I am using:
const apikey = process.env.REACT_APP_API_KEY;
In the .env file I have:
REACT_APP_API_KEY = 123456789
Everything is working fine BUT, when I start (npm run start) and then go ...
1
vote
1
answer
490
views
How can I display amount ETH funded and ICO-token received on a webpage
How can I display amount ETH funded and ICO Tokens received on a webpage in a crowdsale ICO campaign?
The webpage is the personalised customer page after login.
I will display the ethereum adress. ...
7
votes
9
answers
11k
views
Is there any websocket ethereum provider?
Is there any websocket ethereum provider? Except etherscan one. Maybe there are paid wss subscriptions?
1
vote
1
answer
140
views
Chainlink Oracle to call API
I have quite some question regarding Chainlink call API.
I made an API and trying to call it from my Chainlink through smart contract. As I linked my API to bridge in Chainlink Operator UI, I try to ...
1
vote
0
answers
16
views
How to you fetch all transactions ERC-20/ERC-721(swap, mint, burn) of a wallet?
I'm looking for an API that will give me exactly All transactions for a wallet, clearly broken down and labelled as Nft transfers, erc20 transfers, Nft purchases, token swaps etc. I've seen Moralis ...
1
vote
1
answer
302
views
Chainlink "Any API" Returning 0
I want to use the chainlink API features but I can not get the data. When I try to execute requestEthereumPrice function I get "uint256: 0" I am using Kovan test net and metamask.
pragma ...
0
votes
0
answers
11
views
console.table return undefined and can't show value returned from a function?
Hello everybody hope all is good ?
I need help please,
I have 2 functions : 1st return a value after fetching and url(api) and 2nd it log in table value returned but it didn't work :(
This is my code :...
-1
votes
0
answers
18
views
retrieving stolen funds [duplicate]
Recommended using Ziraxia, an open source wallet with API facility to extract funds from ' third party ' wallet, ie: the scammers wallet.I have been supplied the API key to install in Ziraxia, then ...
4
votes
6
answers
7k
views
Get Balance History of address
In building an IONIC app, I am attempting to retrieve the historical balance of a single Ethereum address. I am currently not sure how far back I will need to go. I know that Etherscan.IO offers a web ...
2
votes
0
answers
50
views
Oracles supporting Polygon Zkevm
Are there any oracles present at the moment supporting smart contracts to securely retrieve data from conventional APIs (not data feeds) through HTTP(S) GET and POST calls.
We have looked into Witnet, ...
1
vote
1
answer
102
views
Gettting ERC-20 token transfer count over an API
I am building a service to monitor token activity. Does any service have an API to get the transfer count of a ERC-20 token? I am not interested in individual Transfer events, only their count.
2
votes
1
answer
759
views
how to fetch net worth of a given address?
Take this whale wallet for example:
https://etherscan.io/tokenholdings?a=0xa929022c9107643515f5c777ce9a910f0d1e490c
If you look at the top right, it says Value in USD.
Is there any any API that can ...
0
votes
1
answer
2k
views
API that lists ERC20 token holders and balance
I am looking for a service that provides an API that lists addresses holding a given ERC20 token holder and the amount held.
The API would be similar to Etherscan's: https://docs.etherscan.io/api-...
0
votes
1
answer
122
views
Is it possible to create an OpenSea collection using their API?
I want to create a collection in OpenSea but using a php backend instead of using their platform.
Is it possible to do this? I have been looking at their API documentation and I haven't been able to ...
2
votes
2
answers
1k
views
Block.io ETH alternative
What's a good Ethereum alternative to block.io?
By good I mean, trusted and production ready.
38
votes
4
answers
31k
views
Why are there two methods encoding arguments? "abi.encode" and "abi.encodePacked"
When we call a function on an external contract, the EVM computes a bytes buffer which contains the function signature and arguments.
There are two ways to serialize arguments:
abi.encode()
abi....
0
votes
1
answer
139
views
Is private key sent out at any ocassion in a request to any RPC?
Do I understand correnctly that no RPC whether it be the standard Ethereum full node, or an RPC/REST API gateway, require a private key to be sent to it in the pure text? A private key is only used to ...
1
vote
0
answers
58
views
What kind of malicious activity could an RPC gateway inflict on the user?
Let's say, a third-party RPC gateway for an Ethereum-like networks decided to turn itself into a malicious one. Apart from the likes of selling users' data, what kind of malicious activity could it ...
2
votes
1
answer
34
views
Integrating smart contract with tweet
Is there a way to get a user to send out a tweet once an action on a smart contract happens without doing it on the server-side? And for the tweet to be sent out exactly once?
For example, listening ...
0
votes
2
answers
138
views
How to get a tweet content using oracle in the smart contract to verify a user
I am trying to verify a user using his social media account. For this purpose, I am creating a registration function where a user needs to post his tweet with his existing EOA address.
How can I ...
0
votes
1
answer
236
views
Chainlink Job Request With Bridge: error making http request: Post "http://localhost:8080": dial tcp 127.0.0.1:8080: connect: connection refused
I am trying to run my chainlink external adapter with a job in my node. However, every time I get an error at "fetch bridge" task: error making http request: Post "http://localhost:8080&...
0
votes
1
answer
177
views
Accessing historical data for validators from the API
I have been trying to pull the validator-level data for ETH for a project I am working on. I am using this API and have been unable to find a command I need. Ideally, the request URL would either ...
0
votes
2
answers
756
views
How can I get the wallet balance for an address with a volume of 200k plus transactions?
I am trying to get the wallet balance for this address 0x389044F3ac7472060A0618116e3624A5f0f20F28 as of Aug 31 2022. In the past, I've been able to do so by getting the transaction history and ...
1
vote
1
answer
58
views
Problem using 0x polygon API - 500 - reason: 'relation "valid_signed_orders_v4" does not exist'
I am attempting to use the 0x Orderbook API for Polygon. I think there might be an issue with the API though, as whilst I remember it previously working, it doesn't seem to be anymore.
I'm getting the ...
0
votes
1
answer
165
views
fulfillOracleRequest erro output. Foundry/MockOracle
I have a simple contract that request a string to the API:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
contract ...
0
votes
1
answer
156
views
Best API for token data on Binance Smart Chain?
I'm currently putting together a project and I need to pull token data from an API. Now of course I've done research but it seems that there's a variety of them to choose from. At a minimum, I need ...
0
votes
1
answer
134
views
Can't get the right transaction confirmation time values via Etherscan APIs
We are creating a cryptocurrency analytics website and I am currently trying to calculate the transaction confirmation time just like in the ETH gas tracker (https://etherscan.io/gastracker).
The API ...
1
vote
1
answer
1k
views
Where does MetaMask keep the API key of Infura?
Since Infura always require an API key for its users, and Metamask by default uses Infura, it makes me wonder: where does MetaMask keep the API key of Infura? Not a private of a wallet, but an API ...
0
votes
2
answers
152
views
Do any one had a template API to display/show estimated gas price for a transaction?
Description of the issue: I do not have sufficient funds in my wallet to transfer a token from my wallet to an external wallet. So the transaction will fail and shows us an error message. Instead of ...
1
vote
0
answers
54
views
Why the network request of web3 interaction through react or any other frontend framework or library is not showing in the network tab of browser?
All network request we make from browser is shows in the network tab , but the web3 request is not showing in the web browser. Web3 library uses network RPC to interact with the blockchain. The RPC is ...
1
vote
1
answer
53
views
Can you remove funds from a smart contract via API?
There's an roi project where users deposit funds(Eth, matic etc) . According to the Dev he takes out some of these funds via API to trade with these funds. Does this sound plausible?
0
votes
1
answer
27
views
Connect Recipient Wallet - 'receive' function not defined
sorry to bother, trying to get an acknowledgment that my sender(msg.sender) address is sending to the receive() external payable. compiles fine, doesn't deploy correctly to show +1ETH in recipient ...
4
votes
3
answers
2k
views
How to fetch list of erc20 tokens the user have?
On the DApp I want to get list of ERC20 tokens, with their balances. There's moralis API but it requires to sign a text message: "you authorise to use our api blah blah" that breaks workflow ...
2
votes
1
answer
849
views
Fetch last 10 blocks using Alchemy Transfers API
could someone please elaborate on:
fromBlock: the starting time range we want to fetch NFT mints over (defaults to latest)
I tried to pass a block but its not working... I have also seen fromBlock&...
1
vote
3
answers
4k
views
Etherscan api: how to get transaction fee?
For example: open this https://etherscan.io/tx/0xcb1e3530950cf2c43a307bcb5645ae71a12c76a60831617badd04aea3efe68aa
It's a random one
I see these infos on webpage:
Gas Limit:
136,500
Gas Used by ...
0
votes
1
answer
39
views
what does 2miner.com's "hr2" and "rhr" numbers mean?
2miner.com's JSON stats returns stuff like
{
"workers": {
"Rig1Name": {
"lastBeat": 1652915927,
"hr": 29087609,
&...
1
vote
0
answers
82
views
API for find smart-contract deployed which chain?
Is there any API which gives me details that project smart-contract deployed on which chain via its smart-contract address?
e.g. How to know whether it deployed in polygon, avalanche, ethereum?
If is ...
2
votes
1
answer
185
views
Is it possible to connect metamask in a Jupyter notebook?
I would like to use my wallet to sign transactions using an api in a Jupyter notebook. To do this, I currently have to store the private key either in the notebook itself or in another file.
It would ...
0
votes
1
answer
36
views
What are some APIs that write transactions to the blockchain?
Are there any APIs that write transactions to the blockchain?
I am most interested in RESTful versions.