diff --git a/src/Scripts/Public.js b/src/Scripts/Public.js
new file mode 100644
index 0000000..8ed4622
--- /dev/null
+++ b/src/Scripts/Public.js
@@ -0,0 +1,76 @@
+import StellarSdk from 'stellar-sdk'
+import Swal from "sweetalert2";
+import '@sweetalert2/theme-dark/dark.css'
+const server = new StellarSdk.Server('https://horizon.stellar.org'); // const server = new StellarSdk.Server('https://horizon.stellar.org');
+const fee = server.fetchBaseFee();
+export default function getAccount(privatekey){
+ const keypair = StellarSdk.Keypair.fromSecret(privatekey)
+ return server.loadAccount(keypair.publicKey())
+}
+export function getAddress(privatekey){
+ const keypair = StellarSdk.Keypair.fromSecret(privatekey)
+ return keypair.publicKey()
+}
+export function getFee(){
+ return fee
+}
+export function send(amount, privatekey, destination, memo){
+ console.log(amount)
+ console.log(privatekey)
+ if(memo === undefined || memo === null){
+ memo = ".";
+ }
+ const keypair = StellarSdk.Keypair.fromSecret(privatekey)
+ server.loadAccount(keypair.publicKey()).then(account => {
+ console.log(account)
+ try{
+const transaction = new StellarSdk.TransactionBuilder(account, {fee, networkPassphrase: StellarSdk.Networks.PUBLIC})
+ // Add a payment operation to the transaction
+ .addOperation(StellarSdk.Operation.payment({
+ destination: destination,
+ // The term native asset refers to lumens
+ asset: new StellarSdk.Asset("BLC", "GC4PNLO7X3AVON2RZQ44FJDPODB5RCWORWJY6O5I4O7GHSWFECGDF662"),
+ // Specify 350.1234567 lumens. Lumens are divisible to seven digits past
+ // the decimal. They are represented in JS Stellar SDK in string format
+ // to avoid errors from the use of the JavaScript Number data structure.
+ amount: amount,
+ }))
+ // Make this transaction valid for the next 30 seconds only
+ .setTimeout(30)
+ .addMemo(StellarSdk.Memo.text(memo))
+ // Uncomment to add a memo (https://www.stellar.org/developers/learn/concepts/transactions.html)
+ // .addMemo(StellarSdk.Memo.text('Hello world!'))
+ .build();
+
+// Sign this transaction with the secret key
+// NOTE: signing is transaction is network specific. Test network transactions
+// won't work in the public network. To switch networks, use the Network object
+// as explained above (look for StellarSdk.Network).
+transaction.sign(keypair)
+try {
+ server.submitTransaction(transaction);
+ } catch (e) {
+ console.log('An error has occured:');
+ console.log(e);
+ }Swal.fire({
+ title: "Payment sent successfully",
+ icon: "success",
+ confirmButtonText: "OK",
+ });}
+catch(err){
+ console.log(err)
+ Swal.fire({
+ title: "Error!",
+ text: "Invalid Transaction Data",
+ icon: "error",
+ confirmButtonText: "OK",
+ });
+}
+});
+
+// Let's see the XDR (encoded in base64) of the transaction we just built
+
+// Submit the transaction to the Horizon server. The Horizon server will then
+// submit the transaction into the network for us.
+
+}
\ No newline at end of file
diff --git a/tailwind.config.js b/tailwind.config.js
index b3279b3..b7ab13d 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,19 +1,51 @@
+import daisyui from 'daisyui';
+
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html",
-"./src/**/*.{js,ts,jsx,tsx}"],
+ "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
- colors: {
- 'primary':'#050505',
- 'primary2':'#c2c2c2',
- 'secondary':'#1B9AAA',
- 'tertiary':'#DDDBCB',
- 'four':'#F5F1E3',
- 'five':'#FFFFFF',
- 'alert':'darkred',
- },
},
- plugins: [],
+ daisyui: {
+ themes: [{
+ apptheme: {
+ "primary": "#f46ed5",
+
+
+
+ "secondary": "#6385ce",
+
+
+
+ "accent": "#289ab7",
+
+
+
+ "neutral": "#17161d",
+
+
+
+ "base-100": "#38373e",
+
+
+
+ "info": "#6aa4f6",
+
+
+
+ "success": "#6fe7b9",
+
+
+
+ "warning": "#d37d0d",
+
+
+
+ "error": "#f4736c",
+ }
+ }]
+ },
+ plugins: [daisyui],
}