Skip to content

How can I use the repo to receive and send tokens via different network? #3

@zydjohnHotmail

Description

@zydjohnHotmail

Hello:
I found your repo is interesting, since most Web3 packages are in JavaScript, but I don’t have too much experience, but your repo is in C#, which I have more experience.
I want to know if I can use your repo to receive some tokens from one network and send to another address via another network.
One real example is: to receive USDT tokens from HECO (Huobi) network, then after paying gas fees, send USDT to ERC20 or BEP20 network.
I think I need some type of bridge, and some JavaScript packages have such bridge, but it is not easy to know how to use them.
I find the important Web3 package in .NET is Nethereum, but those github do not answer any questions. Those people in Discord sometimes, answer some questions, but their knowledge seems not good enough to understand my question.
From your experience, in order to receive and send tokens between the following 3 networks: ERC20, BEP20 and HECO chain, what JSON RPC is necessary for .NET program?
Some JavaScript can use the following code to send tokens from one address to another via specific network by just specifying rpcURL, like the following Node.js code shows:

const transfer = await multichainWallet.transfer({
recipientAddress: '0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22',
amount: 100,
network: 'ethereum',
rpcUrl: 'https://1rpc.io/eth', => Ethereum Mainnet
privateKey: 'private key',
tokenAddress: '0xf278c1ca969095ffddded020290cf8b5c424ace2', => USDT token contract address
gasPrice: 15,
});
The gas fees, I can get it via EtherScan API for free.
I want to know according to your experience, does such RPC calls exist for .NET?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions