token-lists
token-lists copied to clipboard
https://raw.githubusercontent.com/The-Blockchain-Association/sec-notice-list/master/ba-sec-list.json
No description provided.
Transfer transfer = new Transfer();
//Supported networks
List<Blockchain> blockchains = new ArrayList<>();
//Evm series, the first parameter is Ethereum, the second parameter is the ChainId, like 1 is the ChainId for Ethereum.
blockchains.add(new Blockchain("ethereum", "56"));
transfer.setBlockchains(blockchains);
transfer.setProtocol("TokenPocket");
transfer.setVersion("1.0");
transfer.setDappName("Test demo");
transfer.setDappIcon("https://eosknights.io/img/icon.png");
//business id defined by developer
transfer.setActionId("web-db4c5466-1a03-438c-90c9-2172e8becea5");
//data,If it is a native token, you can add on-chain data
transfer.setMemo("0xe595a6");
transfer.setAction("transfer");
//sender
transfer.setFrom("0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5");
//receiver
transfer.setTo("0x32ff06198da462f1c519d30f4d328b3fef295d19");
//contract address, if you are transferring ether, this parameter is optional
transfer.setContract("0xdAC17F958D2ee523a2206206994597C13D831ec7");
//token amount. For example, we transfer 0.01 USDT here, which is equivalent to passing 0.01 USDT.
transfer.setAmount(0.01);
//Required
transfer.setDecimal(18);
transfer.setSymbol("USDT");
transfer.setDesc("Only for ui display, not on the chain");
//if developer set callback url, after the wallet operation is completed, the result will be called back to the callbak URL through the post application json method
transfer.setCallbackUrl("http://115.205.0.178:9011/taaBizApi/taaInitData");
TPManager.getInstance().transfer(this, transfer, new TPListener() {
@Override
public void onSuccess(String s) {
//The result of the transfer. Note that developer needs to confirm the final result on chain with the hash. We just return the hash after sending transaction, it can not guarantee a successful transaction.
Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();
}
@Override
public void onError(String s) {
Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();
}
@Override
public void onCancel(String s) {
Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();
}
});
Transfer transfer = new Transfer(); //Supported networks List<Blockchain> blockchains = new ArrayList<>(); //Evm series, the first parameter is Ethereum, the second parameter is the ChainId, like 1 is the ChainId for Ethereum. blockchains.add(new Blockchain("ethereum", "56")); transfer.setBlockchains(blockchains); transfer.setProtocol("TokenPocket"); transfer.setVersion("1.0"); transfer.setDappName("Test demo"); transfer.setDappIcon("https://eosknights.io/img/icon.png"); //business id defined by developer transfer.setActionId("web-db4c5466-1a03-438c-90c9-2172e8becea5"); //data,If it is a native token, you can add on-chain data transfer.setMemo("0xe595a6"); transfer.setAction("transfer"); //sender transfer.setFrom("0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"); //receiver transfer.setTo("0x32ff06198da462f1c519d30f4d328b3fef295d19"); //contract address, if you are transferring ether, this parameter is optional transfer.setContract("0xdAC17F958D2ee523a2206206994597C13D831ec7"); //token amount. For example, we transfer 0.01 USDT here, which is equivalent to passing 0.01 USDT. transfer.setAmount(0.01); //Required transfer.setDecimal(18); transfer.setSymbol("USDT"); transfer.setDesc("Only for ui display, not on the chain"); //if developer set callback url, after the wallet operation is completed, the result will be called back to the callbak URL through the post application json method transfer.setCallbackUrl("http://115.205.0.178:9011/taaBizApi/taaInitData"); TPManager.getInstance().transfer(this, transfer, new TPListener() { @Override public void onSuccess(String s) { //The result of the transfer. Note that developer needs to confirm the final result on chain with the hash. We just return the hash after sending transaction, it can not guarantee a successful transaction. Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show(); } @Override public void onError(String s) { Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show(); } @Override public void onCancel(String s) { Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show(); } });
👌
#404
##420
- [ ] ****
@Imebeez
404Sent from my iPhoneOn Jul 16, 2023, at 10:47 AM, Nina naydenova @.***> wrote:
#404
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>