NEWTON
Asked
3 months ago
15
views
0
Hey, the docs always use await
before methods, but when I try to run those scripts I get an error.
Anyone could help?
0xa483...6765fa
asked
3 months ago
0
Accepted answer
Hey! Just use asyncio library!
The easiest way of using it (from the docs):
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
asyncio.run(main())
Put your code inside an async
function and run it with the asyncio.run
war-in
answered
3 months ago
How to use Argent (or any from the main providers) account in the StarkNet.py?
How to send tokens through StarkNet.py?
How to get the contract ABI?
How do I run a Pathfinder node?
How to fix invalid character error while invoking starknetjs frontend app in Cairo?
When you run warp deploy or warp invoke, which account is paying for the tx fees on the Goerli testnet?
How do I develop against cairo devnet with browser wallets?
How do I interact with my Pathfinder node?
Status “received” while deploying starknet transaction. Is it ok?
StarkNet Faucet: How can I get a Goerli-2 eth faucet tokens (StarkNet)?
What is the proxy pattern and how it can help make my smart contracts upgradable in Cairo Language?
Why am I having trouble deploying my Cairo contract?
Has anyone implemented a minimal proxy in Cairo lang?
A switch statement in Cairo lang to set two distinct values