import * as React from "react";
import * as System from "~/components/system";
import SystemPage from "~/components/system/SystemPage";
import ViewSourceLink from "~/components/system/ViewSourceLink";
const EXAMPLE_CODE = `import * as React from 'react';
import { FilecoinBalancesList } from 'slate-react-system';
import { createPow } from "@textile/powergate-client";
const PowerGate = createPow({ host: 'http://0.0.0.0:6002' });
const { info } = await PowerGate.ffs.info();
class Example extends React.Component {
render() {
return (
);
}
}
`;
export default class SystemPageFilecoinWalletBalances extends React.Component {
render() {
const balanceList = [
{
addr: {
addr:
"t3ual5q5qo5wolfxsui4ciujfucqwf6gqso4lettcjwl2tyismgol7c4tngvoono5rmytuqotye7oosfjv6g7a",
name: "Wallet A",
type: "bls",
},
balance: 40,
},
{
addr: {
addr: "t1n7sjmxtxkhwkmk25ly6hk6xfmvi6sjx5v27wliq",
name: "Wallet B",
type: "secp256k1",
},
balance: 500,
},
];
return (
Filecoin Wallet Balances{" "}
Here is an example of an experience for getting Filecoin Wallet
Balances from{" "}
Textile's Powergate
.
Code
{EXAMPLE_CODE}
);
}
}