Sending Tether USDT via ethereum RPC JSON API to another Tether wallet - ethereum

I'm trying to send tether from one eth account with ether only to another one via rpc json api.
This is my account:
https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7?a=0xbe9027e5d76df40e51300a49aea6152e0c885eb1
{
"jsonrpc":"2.0",
"id":"personal_sendTransaction_1562579177",
"method":"personal_sendTransaction",
"params":[{
"from":"0xbe9027e5d76df40e51300a49aea6152e0c885eb1",
"to":"0xdac17f958d2ee523a2206206994597c13d831ec7",
"value":"0x0",
"data":"0xa9059cbb000000000000000000000000CfCB8f60D94827381b4BDa53f052aAFEC246D72e00000000000000000000000000000000000000000000000000000000000dbba0"
},
"password"
]
}
This is the result
{"code":-32000, "message":"insufficient funds for gas * price + value"}
But I definitely have some USDT there.
Also, which amount should I provide in data? in USDT or in ETH?
What could be a possible solution for this issue?

Wallet should have ETH on it too to pay the gas

Related

How to create a USDT wallet from ETH NODE RPC

I am using a ETH full node server (geth) with RPC Server to operate some operations in server side (Generate wallet, send transaction).
I would like to generate USDT wallet for my users but I coud not find any good documentation on this.
Do you know how to create a USDT wallet from ETH NODE RPC ?
There is no such concept as "USDT wallet" - you have made up that yourself.
Any Ethereum address can receive any token.

Exchange ERC20 (Ethereum) with SPL (Solana) via DEX

I've been searching for a while, but I can't seem to find an answer to this so it would be very helpful if someone can clarify this 😣.
Let's say i have TokenA as an ERC20 deployed to the Ethereum mainnet and I have TokenB as an SPL deployed in the Solana Blockchain.
Is there any way of exchanging those 2 Tokens?
I know with Uniswap I can create my own pool and put some liquidity for my Token, and then swap it with the Selected pair. Eg. TokenA/ETH
But in the case above, the 2 tokens are part of different Blockchains..
Thank you very much
The sol wallet will be different from the ERC wallet
You can create smart contract for recieve etherium and one for sol
And by the use of molaris server add watcher for event on the 2 contract when one of them recieve the token and the recieve wallet for the other blockchain run script from the molaris server for transfer token for the address from the other blockchain
Sorry for bad English

How to get gas fee to send erc20 token at mass volume?

I am learning node JS developing a crypto currency exchanger as a homework project where user can deposit ERC-20 token and Ethereum. I am generating unique ethereum deposit address for every user, where they can deposit ERC-20 token and ethereum. but after sometime I want to move the received ethereum and ERC-20 token to another address (cold wallet).
If someone only send ERC-20 token to the address and no etherum, then how I'll get ethereum to pay as gas fee to transfer the received ERC-20 token to cold wallet?
If suppose, I am first paying etherum (for gas fee) from cold address to the user address, and then using that etherum to transfer received ERC-20 token, will it work at mass level ? means if 10000 users do the same thing at the same time, will not it create a problem ? or is there any better solution for this?
If there's no eth in that account, you can't take the ERC-20 token out.
Transfer some eth to the address and then get ERC-20 token out is the only way. The problem is how to save the gas as far as you can.
You can write a batch transfer contract to send eth to several hundred addresses in one go (the ceiling is determined by block gas limit), batch transfer saves gas. Then you can collect the ERC-20 tokens.
Of course, you can charge your user for compensation.

Developing USDT wallet on ERC20 tokens

I am new to the Ethereum network. I want to develop a wallet (on JavaScript and Node.js) for USDT based on the ERC20 token on the Ethereum network.
Can it be built on JavaScript and Node.js?
Also USDT is a tether-based cryptocurrency whose value is about equal to US$1. So for example, USDT on the ERC20 network works on Ether addresses. So if I send 1 ETH to that address then will it be automatically converted to current ETH value to USDT? (i.e, approximately 273$)?
I am learning Ether on Ether's documentation, so do I need anything else to learn and create a USDT and ETH wallet?
Yes, it can be built using JavaScript and Node.js.
And if you send 1 ETH (US$273) to some other address, you will receive 1 ETH, not 273 USDT. The value is not converted automatically. You'll have to exchange your 1 ETH against 273 USDT.

Send ERC-20 token using Web3j

What is the best way to send transaction in Ethereum with ERC-20 token and get balance of account using web3j
Take a look at https://github.com/blk-io/erc20-rest-service it will proxy requests into an ERC20 contract.