Chain: main
Blocks: 0
Headers: 321066
Verification progress: ▒░░░░░░░░░░░░░░░░░░░░ 0.0000%
Difficulty: 1
Network: in 0, out 10, total 10
Version: 240001
Time offset (s): -210
Proxies: n/a
Min tx relay fee rate (BTC/kvB): 0.00001000
Wallet: default_wallet
Keypool size: 1000
Transaction fee rate (-paytxfee) (BTC/kvB): 0.00000000
Balance: 0.00000000
Warnings: (none)
TERMS
The Bitcoin Testnet is a separate blockchain network that is designed for testing and development purposes. It is a parallel network to the main Bitcoin blockchain, but with its own distinct set of rules and features. The Testnet allows developers, users, and businesses to experiment with Bitcoin transactions, smart contracts, and other functionalities without using real bitcoins or affecting the main Bitcoin blockchain.
The Testnet serves as a sandbox environment for developers to test their applications, services, and software updates without risking real funds or disrupting the live Bitcoin network. It mimics the main Bitcoin blockchain in many ways, but with a different set of rules that prevent Testnet bitcoins from having any real-world value. Testnet bitcoins are usually obtained for free from testnet faucets, which are services that distribute Testnet bitcoins to developers for testing purposes.
The Testnet is useful for developers to ensure the functionality, security, and compatibility of their Bitcoin-related applications before deploying them on the main Bitcoin network. It also allows users to learn and experiment with Bitcoin transactions and features without using real funds. However, it's important to note that Testnet transactions and Testnet bitcoins are separate from the main Bitcoin network and cannot be used as real bitcoins for transactions or investments.
Yes, a "zpub" is also an extended public key (xpub) used in the Electrum wallet for Bitcoin-based cryptocurrencies that utilize the BIP32, BIP44, or BIP49 hierarchical deterministic (HD) wallet standards. The "zpub" prefix indicates that the wallet is following the BIP32/BIP44/BIP49 standard for a Bitcoin-based cryptocurrency that uses a "zero knowledge proofs" privacy feature, such as Zcash (ZEC).
So, in the context of the Electrum wallet for a cryptocurrency like Zcash, a "zpub" is the equivalent of an extended public key (xpub) in other Bitcoin-based cryptocurrencies like Bitcoin (BTC), Litecoin (LTC), etc. It can be used to generate public addresses for receiving funds, but it does not reveal any private key information and is considered safe to share with others. However, it's still important to exercise caution and not share your xpub or zpub with untrusted parties to protect the security and privacy of your funds.
https://bitcoin.stackexchange.com/questions/35707/what-are-pros-and-cons-of-txindex-option
Definition:
If you're using Bitcoin Core just for your own personal use, you probably don't need the -txindex=1 option.
But, if you're using Bitcoin core for development or blockchain analysis of some sort, you will need to set -txindex=1 to be able to get transactions data for any transaction in the blockchain.
TVL: Total Value Locked
AMM: Automated Market Maker (Raydium)
APR: Annual Percentage Rate
returns are NOT compounded (reinvested)
Indication of what you could earn over 1yr if prices and rates stayed the same and you never reinvested your yield, you can often take an approximation of APR by dividing the number by 365 to get a daily yield which is how most DeFi pros think about things.
Daily % Rate = 365 / APR
APY: Annual Percentage Yield
Daily Percentage Rate: Daily % Rate = 365 / APR
refs:
https://solanacompass.com/defi/liquidity-pools-solana-defi-guide/
pools:
https://solanacompass.com/wallets/the-best-wallets-for-solana-for-staking-nfts-and-defi/
Step: https://app.step.finance/#/step-pools
Raydium: https://raydium.io/pools/
Cropper: https://cropper.finance/pools/
Atrix: https://app.atrix.finance/#/pools
Definition:
Liquidity refers to how easy it is to convert an asset (like cryptocurrency) from one form to another (say fiat currency) without sacrificing its market value. In the crypto space, liquidity describes how easy it is to swap one crypto asset for another.
An investor must deposit two crypto-assets into the pool to offer liquidity. The value of the two assets must be equal at the time the investor places them. For instance, if the investor wishes to contribute $300 to the SOL-RAY pool, he must deposit $150 in SOL and $150 in RAY.
AMM algorithm helps maintain the asset-price-volume pair balance; this helps keep price swings to a minimum during transactions. The AMM algorithm creates an opportunity cost, called impermanent loss.
Like yield farming, liquidity providers receive rewards in terms of a portion of the transaction fees. They sometimes earn the platform’s native tokens or those from other projects.
Risks:
A liquidity provider stands the risk of impermanent loss (IL): if the price of the assets they deposit changes significantly.
Liquidity siphoning (rug-pulling): is another possible risk to the DeFi community.
Notes:
refs:
https://solanacompass.com/defi/yield-liquidity-farming-for-passive-income-solana-defi-guide/
Farms:
Cropper: https://cropper.finance/farms/
Step: https://app.step.finance/#/farms
Raydium: https://raydium.io/farms/
Atrix: https://app.atrix.finance/#/farms
Almond: https://almond.so/
Comparable to putting fiat currency in a savings account in a conventional bank. The bank uses the funds in a savings account in its liquidity pool to lend and provide money to its consumers. Yield farming follows the same concept, except you contribute to a lending platform instead of a bank.
Risks
Liquidity Risk: This risk arises when the value of your collateral falls below the loan charge, resulting in a penalty on your security. Liquidation happens when the value of your loan rises or the value of your collateral drops.
Scam risk: Because developers have access to your money, there’s a risk that they’ll run away with it. The dangers are much greater if you don’t know the developers. Thus, participants need to ensure that they get a trusted team to thoroughly investigate their chosen pool, although this does not entirely remove the risk.
Gas fees risks: During the height of the decentralized financing season, gas fees increased by almost 100 times. If they continue to rise, yield farming may become unaffordable for most traders. Fortunately, Solana’s transaction fees are pretty low, and other blockchains like Ethereum are launching new scalable platforms to address the problem of excessive gas fees.
Price risk: If the price of a coin that a yield farmer invests in falls below a certain threshold in the market due to their chosen strategy, the platform may remove the borrower before they have an opportunity to repay their loan.
https://solanacompass.com/wallets/the-best-wallets-for-solana-for-staking-nfts-and-defi/
https://dappradar.com/blog/passive-income-and-yield-farming-on-solana-with-raydium
https://solanacompass.com/wallets/the-best-wallets-for-solana-for-staking-nfts-and-defi/
Aldrin:
https://github.com/aldrin-exchange/aldrin-sdk
Orca:
https://github.com/orca-so/typescript-sdk
mkdir typescript-project
yarn add typescript
yarn add @orca-so/sdk @solana/web3.js decimal.js
Solana setup
1 install cli/tool suite
2 create wallet: https://docs.solana.com/wallet-guide/cli#file-system-wallet
- file system wallet: https://docs.solana.com/wallet-guide/file-system-wallet
- solana-keygen new --outfile ~/.config/solana/wallet/keypair.json
commands
solana --help
Solana Config:
solana config get
solana config set --url https://api.devnet.solana.com
Solana Wallet:
Display Public Ket (Wallet Address):
solana-keygen pubkey ~/.config/solana/wallet/keypair-1.json
solana-keygen verify AMH8Xw1PX4tRmL6WPVLrULmnjKa9wp1yaDMZp9EGWkww ~/.config/solana/wallet/keypair-1.json
Final Script:
#!/bin/bash
keypair_loc=~/.config/solana/wallet/keypair-1.json
addr_1=AMH8Xw1PX4tRmL6WPVLrULmnjKa9wp1yaDMZp9EGWkww
which_net=https://api.devnet.solana.com
# Step 1
echo 'Airdrop your wallet with fake tokens..'
solana airdrop 1 $addr_1 --url $which_net
# Step 2
#https://docs.solana.com/cli/transfer-tokens#check-your-balance
echo "Check local wallet for airdropped fake tokens"
solana balance $addr_1 --url $which_net
# Step 3
#solana-keygen new --no-passphrase --no-outfile
addr_2=8T7uFhc4ucQv7UxSUYBTaGyyaWuiEa8VnHBWHurS15Gw
# Trasfer from local wallet to addr_2
solana transfer --from $keypair_loc $addr_2 0.5 --allow-unfunded-recipient --url $which_net --fee-payer $keypair_loc
# Get Balance
solana balance $addr_1 --url $which_net
solana balance $addr_2 --url $which_net
#!/bin/bash
keypair_1=~/.config/solana/wallet/keypair-1.json
keypair_2=~/.config/solana/wallet/keypair-2.json
which_net=https://api.devnet.solana.com
#solana-keygen new --outfile $keypair_2
addr_1=$(solana-keygen pubkey $keypair_1)
addr_2=$(solana-keygen pubkey $keypair_2)
addr_1_bal=$(solana balance $addr_1 --url $which_net)
addr_2_bal=$(solana balance $addr_2 --url $which_net)
echo "key 1: $addr_1 $addr_1_bal"
echo "key 2: $addr_2 $addr_2_bal"
solana transfer --from $keypair_1 $addr_2 0.5 --allow-unfunded-recipient --url $which_net --fee-payer $keypair_1
echo "keypair 2 bal: $addr_2_bal"
Ensure Cluster Match:
solana --version
solana cluster-version
Run Testnet for Local Dev:
solana-test-validator --log
solana logs -u localhost
Build and deploy:
git clone https://github.com/solana-labs/example-helloworld.git
npm run build:program-rust
solana program deploy dist/program/helloworld.so
Commands:
anchor cluster list
Copy idl to frontend.
cp -r ./target/idl ./app/src
Get program Id after initial build.
solana address -k ./target/deploy/anc1-keypair.json
Project Structure:
Anchor.toml: Anchor configuration file.
Cargo.toml: Rust workspace configuration file.
package.json: JavaScript dependencies file.
programs/: Directory for Solana program crates.
app/: Directory for your application frontend.
tests/: Directory for JavaScript integration tests.
migrations/deploy.js: Deploy script.
Install:
npm i -g @project-serum/anchor-cli
yarn global add @project-serum/anchor-cli
cargo install --git https://github.com/project-serum/anchor --tag v0.19.0 anchor-cli --locked
https://project-serum.github.io/anchor/tutorials/tutorial-0.html#deploying
Deployment:
anchor build
#solana address -k ./target/deploy/anc1-keypair.json -> 6r2DZtptqFkwS1UXPDFioKb8itkaEf6DH4e9pWJdYrLc
solana config set --url http://localhost:8899
anchor deploy
Notes:
Change cluster to deploy compiled app to which net you want.
To see the nets run anchor cluster list
Set appropriate cluster solana config set --url http://localhost:8899
~/Anchor.toml
[provider]
cluster = "devnet"
wallet = "/home/hauwei/.config/solana/id.json"
borrow: https://ftx.com/intl/spot-margin/lending
arb: https://app.1inch.io/#/1/swap/ETH/stETH
SOL -> stSOL
ETH -> stETH
where transaction results in +st difference
stake for epoch
unstake and claim surplus.
https://help.bybit.com/hc/en-us/articles/4405766994073
TERMS:
The Benchmark Price:
Determined five minutes
after your order is successfully processed.The Settlement Price:
Determined in the last 30 minutes
before settlement.Summary:
Non-principal protected investment.
With floating returns.
Can select either USDT
Or an alternative token as the staking asset.
The settlement asset will be in either USDT or an alternative token.
APY displayed at the time of purchase is used to calculate your yield.
Estimated APY is updated every five minutes
.
RISKS:
Staking Asset: USDT
If Settlement Price <
Benchmark Price
ETH
on settlement.Total Return
= Stake Amount
/ Benchmark Price
× (1 + Yield)
If Settlement Price ≥
Benchmark Price
USDT
on settlement.Total Return
= Stake Amount
× (1 + Yield)
Staking Asset: ETH
If Settlement Price < Benchmark Price
ETH
upon settlement.Total Return
= Stake Amount
× (1 + Yield)
If Settlement Price ≥ Benchmark Price
USDT
upon settlement.Total Return
= Stake Amount
× Benchmark Price
× (1 + Yield)
ETH Example:
284% APY
.$3,500
.Outcome 1: If Settlement Price < Benchmark Price
$3,500
.
284%
APY.
1.0078 ETH
based on the following calculation:#Total Return = Staking Amount × (1 + % APY × Staking Period / 365)
ETH 1.0078 = 1 × [1 + 2.84 x 1 / 365]
# Daily % 0.778 = 284 / 365
# ETH TR: 0.00778 = 0.778 / 100 * 1
Outcome 2: If Settlement Price ≥ Benchmark Price
# Total Return = Staking Amount × Benchmark Price × (1 + % APY × Staking Period/365)
USDT 3,527.23 = 1 × 3,500 x [1+ (2.84 x 1 / 365)]
TRADER A:
Staking Asset |
USDT |
Alternative Token |
If Settlement Price < Benchmark Price |
Payout in alternative token Total Return = Stake Amount/Benchmark Price × (1 + Yield) |
Payout in alternative token
Total Return = Stake Amount × (1 + Yield) |
If Settlement Price ≥ Benchmark Price |
Payout in USDT Total Return = Stake Amount × (1 + Yield) |
Payout in USDT
Total Return = Stake Amount × Benchmark Price × (1 + Yield) |
Yield = (% APY × Staking Period/365) |
nft -> remilio
nft -> mlady -> retardio
boden (crypto)
pump.fun
sol domain names
arthur hayes bitmex
remilio nft -> blur.io / opensea
btc nft -> magic eden