I have problem how I can send airdrop from contract smart to list of addresses on polygon chain
and that after send will show like this:
pls any tutorial ?????
Related
Im a beginner in the blockchain/crypto world and I was wondering if there is a way to get the value of a crypto in another one on uniswap (like in the image where we can see that on uniswap 1 ETH = 2997 1INCH). , like using the SDK or the Router ecc.. If you have any suggestion please help me.
I tried using the uniswap sdk and the smart contracts periphery contracts but i couldn't find nothing that could help me
Yes. You can get the price of a cryptocurrency as it is traded in Uniswap.
For Uniswp v2 like exchanges, the price can be calculated as a ratio of reverse0 / reserve1
The related smart contract call is pair.getReserves
For more complete example, you can read the source code of get_current_mid_price() function here
For Uniswap v3, it is there are similar helper functions in Uniswap perihelia contracts
I just want to get all the contract address of all NFTs that are in the market, in particular I want to get the contract address for all ERC-721 tokens. From the opensea API documents, it seems that i can only get all the contract address of a specific owner..
Thank in advance!
You can query https://docs.opensea.io/reference/retrieving-collections to get all the collections by not passing in the asset_owner param. However, this API can only return 50K items and not more than that 😟.
Currently, the company which I am working in, they want to make a statistics system for P2E games which have (or will have) ERC-20 tokens based on Polygon.
I have to accumulate the logs came from blockchain networks and game servers to know how much tokens players earn/spend, and the productivity of each contents/activities.
So, I need to get "The event name & method name" from polygonscan API. unfortunately, Polygonscan API just offer "Transfer Logs" only instead of offering all of logs.
https://docs.polygonscan.com/api-endpoints/accounts#get-a-list-of-erc-20-token-transfer-events-by-address
I found this api will return results with "Input" column. but it has just "deprecated" as value. is there any way to get what I want?
I choose "ethereum" as tags instead of "polygon" if I disturb you, I apologize this. I think ethereum has similar system with polygon because Polygon is based on Ethereum. and, the "Polygon" tags, as you know, it is for "3D rendering" not for crypto coins.
Is there a way of submitting to Maps API the complete address of a place and retreiving it from the API?
I tried to POST to the Place API, but the address doesn't split in component. I have a valid canadian address "6825 Saint-Pierre O. Saint-Hyacinthe J2T 5G7", but the MAPS API returns only the "prefix" for the postal code. I need the complete postal code for shipping purpose.
Is there any way to do this?
I've got a site where people can add their profile and on that page I ask them their address but I would like them to be able to use the google maps search that you find at http://maps.google.com/ to enter their address.
To give you a better understanding its for a charity group so when the charity group wants to have a event they want to enter they address of the event and then when users come on the event page they want to see the google map of the location.
So I want to make sure that when the charity add its event location and save it that when the user come to see the event map that google can understand the address that was entered by the charity. I can of want to have them (charity) to validate the address with google maps before they save it and this way they will be sure that the user will see it properly.
I'm using coldfusion cfmap to show the map and has you can see the var address_saved_by_charity will be populated by what the charity entered:
<cfmap name="eventLocation" centeraddress="[address_saved_by_charity]" zoomlevel="13" markerwindowContent="" width="600" overview="true" />
Why would someone type their address in google maps if they can just put it into your form? Do you need additional data from the Geolocation? If so, I can see how this is useful but you could always get the address from your own form fields and do a valid URL to call the api.
In any case you can look at Geocoding and the google maps api. Geocoding lets you get a position using "123 abc street city state" etc.
Hope that helps
Are you trying to get them to enter their current location or their home address? There are a lot of mobile users these days and their current location is not equal to their address. You can achieve either. Some things to look at are javascripts geolocation API and google maps v3 API. I recently have been working with these. Here are a few links to get you started:
http://blog.bobcravens.com/2010/10/trip-recorder-using-javascripts-geolocation-api-and-google-maps/
http://blog.bobcravens.com/2010/06/a-google-maps-version-3-jquery-plugin/
Hope this helps.
Bob