现在常用的钱就两个。一个是FOXWALLET 这个钱包多数人在用。
下载钱包:FoxWallet Official Website
苹果手机:FoxWallet: Secure Crypto Asset:在 App Store 上的内容 (apple.com)
FoxWallet,您的首选 Web3 钱包!
在不到 1 分钟的时间内创建您的安全加密钱包。现在就开始保护您的资产吧!
FoxWallet 是最易于使用的加密钱包。一个应用程序可以管理您的所有加密资产。
FoxWallet 是一个去中心化的加密钱包,支持 100+ 链,如比特币、以太坊、Aleo、Aptos、Filecoin、IronFish、SUI、Solana、BNB Chain、Arbitrum、Avalanche、Boba、Coreum、Conflux、Cronos、Coreum、Dymension、Evmos、Fantom、Gnosis、KCC、Klaytn、Metis、Merlin、Moonbeam、Moonriver、OKC、Optimism、Polygon、Qtum、Spacemesh、Ton、ZKsync、ZKFair 等。
FoxWallet 是安全的,没有私钥存储在云端,用户可以完全控制自己的资产。
完善的安全性和去中心化
安全可靠的行业领先的加密存储解决方案
您的数字资产尽在掌握
多链多钱包,简单易用
支持导入多组私钥和助记词,不同账户之间灵活切换
FoxWallet 可以加快或取消您的待处理交易。
24/7 实时支持
如果您有任何问题,请在我们的官方 Telegram 频道发送消息。我们的支持人员会尽快回复您。
官方网站: https://foxwallet.com
电报:https://t.me/FoxWallet_EN
无序:https://discord.gg/foxwallet
推特:https://twitter.com/FoxWallet
常见问题:https://hc.foxwallet.com/docs/faq
安卓版:FoxWallet Official Website
直接到官方下载吧!要怎么用官方有教程。如下:
view key
上传到 FoxWallet 后端。private key
查看密钥
view key
view key
view key
FoxWallet 使用与 Leo Wallet 相同的协议。
function getProvider() {
const provider = window.foxwallet && window.foxwallet.aleo;
if (!provider) {
window.open("https://foxwallet.com/download");
throw `Please guide users to download from FoxWallet official website`;
}
return provider;
}
连接当前账户
Promise
try {
const provider = getProvider();
provider.on("connect", (address) => {
console.log("connected address ", address);
});
const address = await provider.connect("ON_CHAIN_HISTORY", "testnetbeta");
console.log("connected address ", address);
} catch (e) {
console.log('connect failed');
}
解密密文
try {
const provider = getProvider();
const plaintext = await provider.decrypt("ciphertext1qgqxn5j5egd59rk0nfvvcrupgkf8c67d4k3sxpxvkzqs8ewjg0a67rvejfyppqralf8lqkjhefpuaptguctfkyzah25q5xjve6vvl0s8qc5mnrkg");
console.log("decrypt plaintext ", plaintext);
} catch (e) {
console.log('decrypt failed');
}
请求 Connect 子账户的记录
try {
const provider = getProvider();
// type Record = {
// id: string;
// owner: string;
// program_id: string;
// spent: boolean;
// data: string;
// recordName: string;
// }
const records = await provider.requestRecords("credits.aleo");
console.log("requestRecords ", records);
} catch (e) {
console.log('requestRecords failed');
}
请求带有 Connect 子账户的解密明文的记录
try {
const provider = getProvider();
// type Record = {
// id: string;
// owner: string;
// program_id: string;
// spent: boolean;
// data: string;
// recordName: string;
// plaintext: string;
// }
const records = await provider.requestRecordPlaintexts("credits.aleo");
console.log("requestRecordPlaintexts ", records);
} catch (e) {
console.log('requestRecordPlaintexts failed');
}
请求 Connect 子账户发送交易
try {
const provider = getProvider();
const result = await provider.requestTransaction({
address: "" /* connected address */,
chainId: "testnetbeta",
transitions: [{ program: "credits.aleo", functionName: "transfer_public", inputs: ["" /* transfer address */, "1000000u64"]}];
fee: 5555 /* estimate fee */,
feePrivate: false,
});
console.log("requestTransaction ", result);
} catch (e) {
console.log('requestTransaction failed');
}
请求上一次发送的交易的状态
try {
const provider = getProvider();
const result = await provider.transactionStatus("" /* transaction id */);
// type Status = "Queued" | "Generating Prover Files" | "Generating Transaction" | "Broadcasting" | "Completed" | "Rejected" | "Finalized" | "Failed"
console.log("transactionStatus ", result);
} catch (e) {
console.log('transactionStatus failed');
}
请求部署
try {
const provider = getProvider();
const result = await provider.requestDeploy({
address: "" /* connected address */,
chainId: "testnetbeta",
program: "" /* the program content to be deployed */,
fee: 2000000 /* estimate fee */;
feePrivate: false;
});
console.log("requestDeploy ", result);
} catch (e) {
console.log('requestDeploy failed');
}
npm install --save \
@demox-labs/aleo-wallet-adapter-base \
@demox-labs/aleo-wallet-adapter-react \
@demox-labs/aleo-wallet-adapter-reactui \
@demox-labs/aleo-wallet-adapter-leo \
@foxwallet/aleo-wallet-adapter-fox \
react
import React, { FC, useMemo } from "react";
import { WalletProvider } from "@demox-labs/aleo-wallet-adapter-react";
import { WalletModalProvider } from "@demox-labs/aleo-wallet-adapter-reactui";
import { LeoWalletAdapter } from "@demox-labs/aleo-wallet-adapter-leo";
import { FoxWalletAdapter } from "@foxwallet/aleo-wallet-adapter-fox";
import {
DecryptPermission,
WalletAdapterNetwork,
} from "@demox-labs/aleo-wallet-adapter-base";
// Default styles that can be overridden by your app
require("@demox-labs/aleo-wallet-adapter-reactui/styles.css");
export const Wallet: FC = () => {
const wallets = useMemo(
() => [
new LeoWalletAdapter({
appName: "Leo Demo App",
}),
new FoxWalletAdapter({}),
],
[]
);
return (
<WalletProvider
wallets={wallets}
decryptPermission={DecryptPermission.UponRequest}
network={WalletAdapterNetwork.Localnet}
autoConnect
>
<WalletModalProvider>
// Your app's components go here
</WalletModalProvider>
</WalletProvider>
);
};