Binance Square

X - Gaje

follow, like and share,
Άνοιγμα συναλλαγής
Επενδυτής υψηλής συχνότητας
4.4 χρόνια
7 Ακολούθηση
156 Ακόλουθοι
286 Μου αρέσει
10 Κοινοποιήσεις
Δημοσιεύσεις
Χαρτοφυλάκιο
·
--
Υποτιμητική
$PIPPIN akan ada penurun tajam, di TF 30 menit sangat jelas, tapi ini koin anomali
$PIPPIN akan ada penurun tajam, di TF 30 menit sangat jelas, tapi ini koin anomali
·
--
Υποτιμητική
$PIPPIN market bosan dan tekanan jual akan segera datang
$PIPPIN market bosan dan tekanan jual akan segera datang
·
--
Υποτιμητική
$PIPPIN mirip pola h&s
$PIPPIN mirip pola h&s
$VVV TP1
$VVV TP1
X - Gaje
·
--
Υποτιμητική
$VVV hampir kena SL huuffffftttt

yang mau ikut entri bisa haka
·
--
Ανατιμητική
$BULLA TF 15 menit
$BULLA TF 15 menit
$BULLA liquiditas bawah sudah di hapus, tinggal tunggu liquiditas atas akan di hapus lagi dan di lihay dari chandle apakah akan ada pengulangan ke Ath
$BULLA liquiditas bawah sudah di hapus, tinggal tunggu liquiditas atas akan di hapus lagi dan di lihay dari chandle apakah akan ada pengulangan ke Ath
$POWER ngekor siap2
$POWER ngekor siap2
·
--
Υποτιμητική
$VVV hampir kena SL huuffffftttt yang mau ikut entri bisa haka
$VVV hampir kena SL huuffffftttt

yang mau ikut entri bisa haka
$VVV zona short
$VVV zona short
$BULLA memasuki zona reversal
$BULLA memasuki zona reversal
OP_NET - Smart Contracts on Bitcoin L1OPNet OPNet OP_NET - Smart Contracts on Bitcoin L1 Bitcoin TypeScript NodeJS NPM Gulp ESLint code style: prettier Introduction A complete, compact and simple library for the Bitcoin ecosystem, written in TypeScript. This library is designed to be easy to use and understand, while providing a comprehensive set of functions for creating, reading and manipulating Bitcoin transactions. This library is designed to be able to manipulate anything related to BSI (Bitcoin Smart Inscription), smart contracts, and other Bitcoin-related technologies. Getting Started Prerequisites Node.js version 16.x or higher npm (Node Package Manager) Installation npm i opnet Copy Documentation Documentation available at https://dev.opnet.org or in the docs/ directory of the repository. Development Clone the repository: git clone https://github.com/btc-vision/opnet.git Copy Navigate to the repository directory: cd opnet Copy Install the required dependencies: npm i Copy Example Calling a contract function from typescript/javascript is as simple as a few lines of code: import { getContract, IOP20Contract, JSONRpcProvider, OP_20_ABI, TransactionParameters, } from 'opnet'; import { Configs } from '../configs/Configs.js'; import { Address, Wallet } from '@btc-vision/transaction'; import { Network } from '@btc-vision/bitcoin'; const network: Network = Configs.NETWORK; const provider: JSONRpcProvider = new JSONRpcProvider('https://regtest.opnet.org', network); const wallet: Wallet = Configs.WALLET; const yourAddress: Address = new Address(wallet.keypair.publicKey); const example: IOP20Contract = getContract<IOP20Contract>( 'bcrt1plz0svv3wl05qrrv0dx8hvh5mgqc7jf3mhqgtw8jnj3l3d3cs6lzsfc3mxh', OP_20_ABI, provider, Configs.NETWORK, yourAddress, ); const name = await example.name(); const symbol = await example.symbol(); const totalSupply = await example.totalSupply(); const decimals = await example.decimals(); const myBalance = await example.balanceOf(yourAddress); console.log('Name:', name.properties.name); console.log('Symbol:', symbol.properties.symbol); console.log('Total Supply:', totalSupply.properties.totalSupply); console.log('Decimals:', decimals.properties.decimals); console.log('My Balance:', myBalance.properties.balance); // You can also easily simulate & interact onchain! const transferSimulation = await example.transfer(yourAddress, 10000n); const params: TransactionParameters = { signer: wallet.keypair, // The keypair that will sign the transaction refundTo: wallet.p2tr, // Refund the rest of the funds to this address maximumAllowedSatToSpend: 5000n, // The maximum we want to allocate to this transaction in satoshis feeRate: 10, // We need to provide a fee rate network: network, // The network we are operating on }; const tx = await transferSimulation.sendTransaction(params); console.log('Transaction created!', tx); Copy You can get the calldata generated by doing balanceExample.calldata and generate your transaction based on that. In scenarios where you are writing data on-chain, you must specify the sender in the getContract function. This is important for the simulation to pass. Contribution Contributions are welcome! Please read through the CONTRIBUTING.md file for guidelines on how to submit issues, feature requests, and pull requests. We appreciate your input and encourage you to help us improve OP_NET. License This project is open source and available under the MIT License. If you have any suggestions or contributions, please feel free to submit a pull request.

OP_NET - Smart Contracts on Bitcoin L1

OPNet

OPNet
OP_NET - Smart Contracts on Bitcoin L1
Bitcoin TypeScript NodeJS NPM Gulp ESLint

code style: prettier

Introduction
A complete, compact and simple library for the Bitcoin ecosystem, written in TypeScript. This library is designed to be easy to use and understand, while providing a comprehensive set of functions for creating, reading and manipulating Bitcoin transactions. This library is designed to be able to manipulate anything related to BSI (Bitcoin Smart Inscription), smart contracts, and other Bitcoin-related technologies.

Getting Started
Prerequisites
Node.js version 16.x or higher
npm (Node Package Manager)
Installation
npm i opnet
Copy
Documentation
Documentation available at https://dev.opnet.org or in the docs/ directory of the repository.

Development
Clone the repository:
git clone https://github.com/btc-vision/opnet.git
Copy
Navigate to the repository directory:
cd opnet
Copy
Install the required dependencies:
npm i
Copy
Example
Calling a contract function from typescript/javascript is as simple as a few lines of code:

import {
getContract,
IOP20Contract,
JSONRpcProvider,
OP_20_ABI,
TransactionParameters,
} from 'opnet';
import { Configs } from '../configs/Configs.js';
import { Address, Wallet } from '@btc-vision/transaction';
import { Network } from '@btc-vision/bitcoin';

const network: Network = Configs.NETWORK;
const provider: JSONRpcProvider = new JSONRpcProvider('https://regtest.opnet.org', network);
const wallet: Wallet = Configs.WALLET;
const yourAddress: Address = new Address(wallet.keypair.publicKey);

const example: IOP20Contract = getContract<IOP20Contract>(
'bcrt1plz0svv3wl05qrrv0dx8hvh5mgqc7jf3mhqgtw8jnj3l3d3cs6lzsfc3mxh',
OP_20_ABI,
provider,
Configs.NETWORK,
yourAddress,
);

const name = await example.name();
const symbol = await example.symbol();
const totalSupply = await example.totalSupply();
const decimals = await example.decimals();
const myBalance = await example.balanceOf(yourAddress);

console.log('Name:', name.properties.name);
console.log('Symbol:', symbol.properties.symbol);
console.log('Total Supply:', totalSupply.properties.totalSupply);
console.log('Decimals:', decimals.properties.decimals);
console.log('My Balance:', myBalance.properties.balance);

// You can also easily simulate & interact onchain!

const transferSimulation = await example.transfer(yourAddress, 10000n);
const params: TransactionParameters = {
signer: wallet.keypair, // The keypair that will sign the transaction
refundTo: wallet.p2tr, // Refund the rest of the funds to this address
maximumAllowedSatToSpend: 5000n, // The maximum we want to allocate to this transaction in satoshis
feeRate: 10, // We need to provide a fee rate
network: network, // The network we are operating on
};

const tx = await transferSimulation.sendTransaction(params);
console.log('Transaction created!', tx);
Copy
You can get the calldata generated by doing balanceExample.calldata and generate your transaction based on that. In scenarios where you are writing data on-chain, you must specify the sender in the getContract function. This is important for the simulation to pass.

Contribution
Contributions are welcome! Please read through the CONTRIBUTING.md file for guidelines on how to submit issues, feature requests, and pull requests. We appreciate your input and encourage you to help us improve OP_NET.

License
This project is open source and available under the MIT License. If you have any suggestions or contributions, please feel free to submit a pull request.
·
--
Ανατιμητική
hati hati $RIVER udah mulai bergerak biarpun lambat, apakah akan kembali ke ath,nya #RİVER
hati hati $RIVER udah mulai bergerak biarpun lambat, apakah akan kembali ke ath,nya

#RİVER
$BTC jika mengulangi siklus
$BTC jika mengulangi siklus
·
--
Ανατιμητική
$BULLA jika melawati garis kuning di harga 0.076 ini bisa kembali ke ath, atau membuat ath baru,
$BULLA jika melawati garis kuning di harga 0.076 ini bisa kembali ke ath, atau membuat ath baru,
·
--
Υποτιμητική
$PIPPIN harusnya gini lah
$PIPPIN harusnya gini lah
$BTC kena entri ya rejeki, gak kena ya belum rejeki
$BTC kena entri ya rejeki, gak kena ya belum rejeki
·
--
Υποτιμητική
$PIPPIN kepengennya kayak gini😂
$PIPPIN kepengennya kayak gini😂
·
--
Υποτιμητική
$PIPPIN semofa kena TP dan $BTC target terakhir di 59k$
$PIPPIN semofa kena TP dan $BTC target terakhir di 59k$
·
--
Υποτιμητική
$POWER akan terlulang jatuh dalam
$POWER akan terlulang jatuh dalam
·
--
Υποτιμητική
$AZTEC 15menit
$AZTEC 15menit
X - Gaje
·
--
Υποτιμητική
$AZTEC entri short sesuai gambar, putih entri merah SL
Συνδεθείτε για να εξερευνήσετε περισσότερα περιεχόμενα
Εξερευνήστε τα τελευταία νέα για τα κρύπτο
⚡️ Συμμετέχετε στις πιο πρόσφατες συζητήσεις για τα κρύπτο
💬 Αλληλεπιδράστε με τους αγαπημένους σας δημιουργούς
👍 Απολαύστε περιεχόμενο που σας ενδιαφέρει
Διεύθυνση email/αριθμός τηλεφώνου
Χάρτης τοποθεσίας
Προτιμήσεις cookie
Όροι και Προϋπ. της πλατφόρμας