python-opensea icon indicating copy to clipboard operation
python-opensea copied to clipboard

Testnet Availability?

Open Luca-Blight opened this issue 3 years ago • 6 comments

Is there a way to connect to a testnet endpoint?

Luca-Blight avatar Apr 19 '22 18:04 Luca-Blight

You can change the base url (and version if needed):

api = OpenseaAPI(apikey="YOUR APIKEY", base_url="https://rinkeby-api.opensea.io/api", version="v1")

zseta avatar Apr 20 '22 12:04 zseta

Got it, thank you! How does that look for mumbai?

Luca-Blight avatar Apr 20 '22 12:04 Luca-Blight

Maybe one of these: https://docs.polygon.technology/docs/develop/network-details/network/ (haven't tried any of them)

https://rpc-mumbai.matic.today or
https://matic-mumbai.chainstacklabs.com or
https://rpc-mumbai.maticvigil.com or
https://matic-testnet-archive-rpc.bwarelabs.com

zseta avatar Apr 21 '22 13:04 zseta

Doesn't seem to work. reference at the bottom.

test_api = OpenseaAPI(base_url="https://testnets-api.opensea.io/") successful_events = test_api.events_backfill(start=period_end, until=period_start, only_opensea=False, collection_slug=slug, event_type=event)

https://docs.opensea.io/reference/retrieving-events-testnets

Luca-Blight avatar Apr 29 '22 12:04 Luca-Blight

Can i deploy NFTs using this API on Opensea testnet (network polygon)? Furthermore, is possible to wrap metadata of my local file.json using and dump them into my file.png using python? Thank you

abstractumx avatar May 19 '22 16:05 abstractumx

Hi @abstractumx , Currently, this wrapper only allows you to download NFT data, you cannot use it to deploy NFTs as of now.

zseta avatar May 19 '22 21:05 zseta