NEWTON
Asked
30 days ago
18
views
0
Hey, I have some tokens on my account and would like to send them to another. How to do it in StarkNet.py?
0xa483...6765fa
asked
30 days ago
0
Accepted answer
Hi, I recommend using the Contract
interface.
The address and ABI of the token have to be known. You will also need your account instance.
For example, if you would like to send ETH tokens:
Contract
instancetransfer
functioneth_address = 0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
contract = Contract(address=eth_address, abi=abi, client=account)
res = await contract.functions["transfer"].invoke(recipient=recipient_address, amount=1000, max_fee=int(1e16))
await res.wait_for_acceptance()
where:
war-in
answered
30 days ago
How to use Argent (or any from the main providers) account in the StarkNet.py?
Where can i get test tokens in StarkNet?
how to send token
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
How to convert tokens on starknet? Any DEXs AMMs?
StarkNet error while deploying: IndexError: list assignment index out of range. Can anyone help?
StarkNet Faucet: How can I get a Goerli-2 eth faucet tokens (StarkNet)?
How to make math operation with Field Elements (felts) in Cairo lang?
signing a message using account.signMessage(data) | starknet.js
A switch statement in Cairo lang to set two distinct values
How can I get ETH for the test net in StarkNet?
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
Is it possible to import local python files into hints?
Another vanilla Cairo question, what are the sorts of references