How can Generate new unique USDT (Tether) addresses for the deposit (for each order I need a new deposits address) in Binance API?
Only one address per currency per user may be generated. If you already have an address for a currency, you will not be able to generate a new address.
You can reach out to Customer Service if you’d like to change the deposit address manually.
Related
We need to know that is there any possible ways to automatically fetch the Users wallet addresses of those who swapped their tokens in a DEX exchange in the etherscan site! As we are now able track the DEX contract addresses and tokens for now. But, we do not have a clue about tracking the users wallet addresses of the DEX exchanges like uniswap, sushiswap, 1inch.
We are expecting a solution for a problem that we stated. we do not have a clue about tracking the users wallet addresses of the DEX exchanges like uniswap, sushiswap, 1inch.
I’m working on a security token for a tokenized hedge fund and I need help in how to structure the project.
My background is in algorithmic trading and I’ve developed and tested an algorithm for trading cryptos. My goal is to turn this into a token to democratize the kind of investment usually only restricted to accredited investors. And of course, I would charge a small management fee.
My idea was to create a BEP-20 token, sell a number of tokens in an STO, burn whatever is not sold initially, and start trading with the funds from the STO. My management fee would be charged by minting new tokens periodically (daily or weekly).
A couple of questions:
I want to do the STO on a DEX (for regulatory reasons). I was thinking Pancakeswap, pairing my token with BUSD or USDT, but how can I control the price with their AMM algo? Is there a way to automatically adjust liquidity with a smart contract?
The value of the token will be linked to the underlying assets in the funds (10 different cryptos + 1 or more stablecoins depending on the size of the fund). Assuming you have the addresses where the 10 cryptos (plus the stablecoin) are held, how do you know how much is held in each and therefore are able to determine the total value of the fund?
And once you have determined the value of the token (total value of the fund divided by number of tokens in circulation), can you control the price on Pancakeswap with a smart contract? Or is this done separately?
In the end, the goal is to create a security token which value is guaranteed and linked to the underlying assets in the fund.
Am I approaching the problem the wrong way? If so, how would you do it?
You could theoretically "adjust" smart contract liquidity by using the router in Uniswap which would give you methods to add liquidity to a ERC-20 token.
Having a token linked to underlying assets could be achieved by having the token go through a defi protocol like avve, your token would have a value and by making your asset the collateral you could achieve purchasing power for other currencies.
The first price is given by the rate you make in the liquidity pool, if you were to create the token with a LP of 50 ETH then your token starting price would be 1/2 ETH. It's up to the market to determine the price after that.
is it possible to know for which price user is buying/selling token on transfer function call?
I want to store information on the contract for with user bought/sold tokens on the transfer function.
No, this is not possible, at least in a token contract, because the token contract only "knows" that the user send or approved tokens and that's all that can know, it could be possible in a dex or cex contract
Yes it is possible. this is where oracles comes into play chainlink oracle provide off-chain data like token price feeds in contract in a decentralised way. Here is how you can get token price feed in smart contract in EVM-compatible blockchains
To keep record of price on each transfer extend transfer event to emit the price as well that you fetch from oracle.
Your Flow for modified transfer function will be something like this.
All Checks to ensure (valid transfer + valid oracle call)
Get oracle price of token from oracle and store it in local variable
Transfer
Emit modified event emit Transfer(sender, recipient, amount, price); where price is current price that you got from oracle.
I recently read some where the speaker mentioned bitcoin doesn't store addresses in the block chain. If addresses do not exist on the blockchain, how can you check their balances on - for example - blockchain com?
Payment addresses stored within transactions, and transactions stored within blockchain. Thus, speaker is not right - addresses stored in the blockchain, and by scanning the blockchain, you can fetch all activity for any address. Of course, balance - just result (sum) of all activities.
However, Bitcoin (or other bitcoin-like crypto) does not build it's own address index, and there is impossible quickly fetch balance or activity history for some specific address directly from a node. Explorers scans blockchain and build his own transaction history withing his own database. Of course, when new block comes in, explorer updates his own DB, and by this way - he maintains actual history for all accounts.
I have a website, and I need each user of the site to have their own unique bitcoin address. Any funds sent to these addresses I need to be automatically transferred to a master wallet for me.
Any ideas on how I can set this up easily? The first stage is to generate bitcoin wallet addresses with code. I have no idea how to do this. The second question is then how do I access those funds and withdraw the money.
You can use the Bitcoin Core Api getaccountaddress with the account parameter as the user Unique ID from your Database. It will generate addresses that belongs to specific user but with a single Private Key that you own.
You can spend the funds with just normal transaction on Bitcoin Core Wallet.