Questions tagged [external-api]
The external-api tag has no usage guidance.
164
questions
0
votes
0
answers
18
views
Creating address using Clef JSON-RPC without manual Confirmation on Clef
I am trying to create a new account using clef on my ETH node. I am using clef JSON-RPC
{"id": 1, "jsonrpc": "2.0", "method": "account_new", "...
2
votes
0
answers
26
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
0
answers
40
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 ...
0
votes
0
answers
63
views
Make offer to opensea asset on polygon chain using opensea API
I have written this code using opensea API (not SDK) so far but it returns a 400 Bad Request error:
const sdk = require("api")("@opensea/v2.0#xx4df2gljerlft1");
const web3 = ...
0
votes
1
answer
46
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 ...
1
vote
0
answers
28
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 ...
0
votes
1
answer
50
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 ...
2
votes
1
answer
27
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
60
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 ...
2
votes
1
answer
301
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 ...
0
votes
1
answer
220
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 ...
0
votes
1
answer
79
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
379
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
47
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
0
answers
37
views
provable_query not sending output but no error as well
So, my goal is to achieve different fields, such as ToAccount, FromAccount from the json file loaded in IPFS. The below code snippet is to fetch the ToAccount details -
// SPDX-License-Identifier: MIT
...
0
votes
1
answer
148
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
86
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
0
answers
46
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
48
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
2
answers
1k
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
23
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 ...
2
votes
1
answer
707
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
1
answer
911
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 ...
4
votes
3
answers
975
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 ...
1
vote
0
answers
76
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 ...
0
votes
1
answer
33
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,
&...
0
votes
1
answer
31
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.
0
votes
1
answer
94
views
How to automate tokenomics research and data collection?
I want to create a tokenomics database.
I want to build a bot to automate data collection that answers for each token on the blockchain some of the questions asked and answered in this article.
I am a ...
0
votes
1
answer
243
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 ...
0
votes
1
answer
108
views
Python: I am getting a syntax error that prevents me from deploying me contract. What is the syntax of format that I need to use for this?
I just created a new API key for Etherscan. I added my key to my .env file, and I added publish_source=True to print(f"Contract deployed to {fund_me.address}"), publish_source=True to be ...
0
votes
1
answer
188
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
806
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
86
views
Add arguments to get request
I'm trying to make a get request using the chainlink node. I'm following this tutorial this tutorial but the problem is that this is sending a request to this specific URL https://min-api....
0
votes
1
answer
85
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 ...
1
vote
1
answer
2k
views
How do I get information on pending transactions of a wallet/contract?
I have tried so many API such as Etherscan, Moralis, and Blockcypher but they all only display completed transactions. Is there a way to scan a wallets' pending transaction and get information out of ...
0
votes
2
answers
114
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
1
answer
804
views
How do you set the fee in Uniswap-Python function uniswap.get_price_input()?
I am successfully using uniswap.get_price_input(eth, dai, 10**18) to get the price of the ETH/DAI pair. In addition, I receive the get the message "No fee set, assuming 0.3%" in my terminal.
...
1
vote
1
answer
142
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
0
answers
19
views
3Box returns error rather than desired account info
3box returns
{"status":"error","message":"Address link not found, address does not have a 3Box or is malformed"}
when using
this.profile = this.threebox....
3
votes
4
answers
1k
views
Is there a way to control METAMASK via some type of api feature? I want to use it as my backend to send / receive eth and tokens
Is there a way to replace geth with just using metamask via some type of api via the command line? I want to interface with metamask to send and eth and erc20 tokens.
Right now geth works, but it has ...
1
vote
1
answer
138
views
TRANSFORM ERC 20 vs Sell to pancake swap
I am able to do the Sell to pancake swap tranx
But failed with the API when i do TRANSFORM E R C20 Tranx
example of failed: https://bscscan.com/tx/...
0
votes
1
answer
334
views
How to get list of tokens available in Polygon network using smart contracts?
I want to get the names of all the tokens which are available in Polygon using a smart contract(solidity), how can I achieve that?
0
votes
1
answer
220
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 ...
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
1
answer
107
views
Make external adapter call only accessible through smart contract
sorry if this is a newbie question, I'm new to solidity and smart contracts. I want to make an API call on my smart contract but from what I saw, I have to implement a Chainlink external adapter. Now, ...
1
vote
1
answer
281
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 ...
1
vote
0
answers
354
views
Get Ether price by Unix Timestamp?
Is there any API I can use to get the price of Ether by providing a unix timestamp? The reason I ask is because I am using the Etherscan API to download internal transaction data but for some reason ...
3
votes
1
answer
1k
views
How to Collect Uniswaps Token-pair FULL Price history? ( Help )
How do websites like CoinGecko.com and Dextools.io get a token pair's FULL price history?
I understand that I can query Uniswap's theGraph, but that limits only 1000 entries. How do these websites ...
0
votes
1
answer
287
views
Failing to fill 0x quote
I'm trying to fill a quote that I get from the 0x API:
const qs = createQueryString({
sellToken: 'TUSD',
buyToken: 'WETH',
sellAmount: BigInt(882693 * 10 ** 18)
});
..but the transaction ...
0
votes
0
answers
136
views
Retrieve APR data from Pancakeswap Finance [BSC]
Is there an API by Pancakeswap Finance (BSC) to receive the APR for each farm and pools?
I personally don't wan't to calculate all APR individually by hand.