Blockchain

Blockchain

A blockchain is an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way. The ledger itself can also be programmed to trigger transactions automatically.
ADELA DAVID

ADELA DAVID

1656834960

How to Edit and Delete NFTs on OpenSea in 1 Minute | for Beginners

This tutorial is about how to edit/delete NFTs on OpenSea. So if you want to learn how to edit/delete NFT Art on OpenSea, this video is the video you are looking for!

I hope this tutorial - in which I showed you how to edit/delete NFTs on OpenSea - was helpful. 

OpenSea NFT Marketplace is a platform to trade different NFTs between merchants. It could be any digital art on the blockchain territory. For i.e. videos and sports, music, GIFs, and punks. 

In previous times, the art creators were so less paid, sometimes even unrecognized. But, after the emergence of the NFT marketplace, it is completely easy and smart for them to gain more through their creative works. 

The traders from various countries also have an innovative platform to buy their digital assets and make a huge profit through it in a very short period. Such atmosphere to the peer-to-peer NFT Marketplace trading circumstance today evolves to peak than Cryptocurrency Exchanges. 

You can see more at: What is Opensea NFT marketplace and how to create it?

Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money 

🔥 If you're a beginner. I believe the article below will be useful to you ☞ [What You Should Know Before Investing in Cryptocurrency - For Beginner]

#blockchain  #bitcoin  #crypto  #cryptocurrency 

How to Edit and Delete NFTs on OpenSea in 1 Minute | for Beginners
ADELA DAVID

ADELA DAVID

1656748500

How to Transfer NFT From OpenSea To another Wallet in 1 Min

This tutorial is about how to transfer NFTs from OpenSea. So if you want to learn how to send NFT Art from OpenSea to another wallet, this video is the video you are looking for!

I hope this tutorial - in which I showed you how to transfer NFTs from OpenSea - was helpful. 

OpenSea NFT Marketplace is a platform to trade different NFTs between merchants. It could be any digital art on the blockchain territory. For i.e. videos and sports, music, GIFs, and punks. 

In previous times, the art creators were so less paid, sometimes even unrecognized. But, after the emergence of the NFT marketplace, it is completely easy and smart for them to gain more through their creative works. 

The traders from various countries also have an innovative platform to buy their digital assets and make a huge profit through it in a very short period. Such atmosphere to the peer-to-peer NFT Marketplace trading circumstance today evolves to peak than Cryptocurrency Exchanges. 

You can see more at: What is Opensea NFT marketplace and how to create it?

Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money 

🔥 If you're a beginner. I believe the article below will be useful to you ☞ [What You Should Know Before Investing in Cryptocurrency - For Beginner]

#blockchain  #bitcoin  #crypto  #cryptocurrency 

How to Transfer NFT From OpenSea To another Wallet in 1 Min
Best of Crypto

Best of Crypto

1656694740

Binance Toolbox in Ruby

A collection of simple ruby scripts that work on gem binance-connector-ruby.

Installation

To run these scripts, it's required to install the gem by:


gem install binance-connector-ruby

or just


bundle install

How to run script

It's simple to run as:


> ./scripts/get_ticker.rb

API key & secret

To get user's information, e.g account balance, you will need to setup API key/secret from https://www.binance.com/en/my/settings/api-management

If you see API server returns error "Invalid API-key, IP, or permissions for action.", please check this topic https://dev.binance.vision/t/why-do-i-see-this-error-invalid-api-key-ip-or-permissions-for-action/93 
This forum has plenty of topics covering most of common questions, it's the best place to ask or search API related questions.

What is this gem

It's newly built nice gem includs all Binance Spot API endpoints.

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-toolbox-ruby
License:

#Binance #blockchain #ruby

Binance Toolbox in Ruby
Best of Crypto

Best of Crypto

1656687420

BNB Toolbox Python: Some Useful Scripts That Help Users To Validate

Binance Toolbox Python

Preparation

  1. It's required to install the binance-connector package
pip install binance-connector

2.   Some api endpoints requires sending a valid API-Key and signature, so in order for some scripts to work, please set up your account's api key pair as environment variables.

Note: By default, the scripts uses Testnet's REST and Websocket as base urls.

export BINANCE_API_KEY=<your_api_key>
export BINANCE_API_SECRET=<your_secret_key>

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-toolbox-python
License:

#Binance #blockchain #python 

BNB Toolbox Python: Some Useful Scripts That Help Users To Validate
Best of Crypto

Best of Crypto

1656680100

Postman Collection for Binance Pay API

Binance Pay API Postman

Postman is an API Collaboration Platform.

Binance Pay now offers Postman Collection and Environment (JSON files) for a quicker and easier usage of our RESTful APIs.
You only need to import and set up with your own API and secret keys to begin.

How to import and configure

  • Download the binance-pay-postman-collection repository.
  • Click the Import button. On Postman for Mac, for example, the button is at the top left:

Screenshot of Postman for Mac, with 'Import' button pointed out at top left.

  • On the Import pop-up page, select the Folder tab. Click the Choose folder from your computer button and choose the root folder of the downloaded repository.

Screenshot of of Postman for Mac, showing the Import screen.

  • Select which collections and environments you would like to import and click the Import button.

Screenshot of of Postman for Mac, showing the Import screen after selecting the folder.

  • Select the Environments tab on the left, choose an environment, and set your Api Key and Secret Key by changing the Current Value column (see screenshot); (The Timestamp, Signature, nonce fields can be left empty as they’ll be automatically filled by Postman when sending a request.)

Screenshot of Postman for Mac, showing where the user should fill in their API and secret keys.

  • Select your newly-added environment from the environment dropdown menu. On Mac, this is at top right, to the left of the eye icon.

Screenshot of Postman for Mac, showing how imported environments can be selected from a dropdown .

Postman safety practices

The following practices are advised to secure your account's safety:

  • Don't use Collections obtained from an unknown source.
  • Review the environment JSON file before its usage.
  • Don't use any code that you don't understand.
  • Make sure that the withdrawal permission is not enabled for your API keys.
  • When you finish trying out the API, delete your API keys.

FAQ

Q: Why I can't get any response?

You haven't imported the environment file or you've imported it but haven't selected it from the dropdown menu (mentioned in [[How to import and configure]])

Q: How can I debug a request or find the used URL?

  • Open the Postman's console to find requests' parameters and URL.
  • Debugging can be done by editing the Pre-request Script tab.

Q: Error Mandatory parameter 'xxxx' was not sent, was empty/null, or malformed.

Likely causes:

  • API key is not set.
  • API key is not correct.
  • BinancePay-Certificate-SN is not selected in your Postman Headers tab.

Q: Error Signature for this request is not valid.

Likely causes:

  • Secret key is not set.
  • Request was made with at least one empty parameter.
  • signature is not the last parameter in the parameters list.

Q: Error A mandatory parameter was not sent, was empty/null, or malformed.

Please refer to the API documentation to double check all the mandatory parameters.

My question isn't here

If you don't find your answer here, please consult https://dev.binance.vision/ for similar questions from the community or open an issue here.

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-pay-postman-collection
License: MIT license

#Binance #blockchain #postman #api

Postman Collection for Binance Pay API
Best of Crypto

Best of Crypto

1656672720

Binance Toolbox in Java

A collection of Java examples that connects to the Binance API endpoints based on binance-connector-java.

Installation

Replace LATEST_VERSION with the latest version number and paste the snippet below in pom.xml

<dependency>
    <groupId>io.github.binance</groupId>
    <artifactId>binance-connector-java</artifactId>
    <version>LATEST_VERSION</version>
</dependency>

Run mvn install where pom.xml is located to install the dependency.

Running a java file

mvn compile exec:java -Dexec.mainClass="<java_file_name>"

API key & secret

To get user's information, e.g account balance, you will need to setup API key/secret from

Production: https://www.binance.com/en/my/settings/api-management 
Testnet: https://testnet.binance.vision/

Fill up the API/Secret key parameters in PrivateConfig.java

If you see API server returns error "Invalid API-key, IP, or permissions for action.", please check this topic https://dev.binance.vision/t/why-do-i-see-this-error-invalid-api-key-ip-or-permissions-for-action/93 
This forum has plenty of topics covering most of common questions, it's the best place to ask or search API related questions.

Learn More

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-toolbox-java
License:

#Binance #blockchain #java

Binance Toolbox in Java
Best of Crypto

Best of Crypto

1656665400

Binance Pay Public API Connector in Python

This is a lightweight library that works as a connector to Binance Pay public API

Installation

pip install binance-pay-connector

Documentation

https://binance-pay-connector-python.readthedocs.io

RESTful APIs

Usage examples:

from binance.pay.merchant import Merchant as Client


# Setup merchant API from https://merchant.binance.com/en/dashboard/developers

client = Client(key='<api_key>', secret='<api_secret>')
response = client.get_order(merchantTradeNo="<trade_no>")

# Get an order details
print(response)

Please find examples folder to check for more endpoints.

Optional parameters

PEP8 suggests lowercase with words separated by underscores, but for this connector, the methods' optional parameters should follow their exact naming as in the API documentation.

# Recognised parameter name
response = client.get_order(merchantTradeNo="2223")

# Unrecognised parameter name
response = client.get_order(merchant_trade_no="2223")

Display logs

Setting the log level to DEBUG will log the request URL, payload and response text.

Error

If a request has a parameter that is not provided but required from server, this library will throw an exception binance.pay.error.ParameterRequiredError, except the endpoint that is for creating order. POST /binancepay/openapi/v2/order that used to create order has complicate parameter strucuture, the library doesn't any mandatory parameter. Please see the example file for how to place an order.

Test Case

# In case packages are not installed yet
pip install -r requirements/requirements-test.txt

pytest

Contributing

Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please open a topic at Binance Developer Community

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-pay-connector-python
License:

#Binance #blockchain #python #api

Binance Pay Public API Connector in Python
ADELA DAVID

ADELA DAVID

1656662100

How to Edit Profile on OpenSea in 1 Minute | for Beginners

In this video, Let's Learn How to Edit Profile on OpenSea In 1 Minute | For beginners. So if you want to learn how to set up profile on OpenSea, this video is the video you are looking for!

I hope this tutorial - in which I showed you how to edit or change your OpenSea profile - was helpful. 

OpenSea NFT Marketplace is a platform to trade different NFTs between merchants. It could be any digital art on the blockchain territory. For i.e. videos and sports, music, GIFs, and punks. 

In previous times, the art creators were so less paid, sometimes even unrecognized. But, after the emergence of the NFT marketplace, it is completely easy and smart for them to gain more through their creative works. 

The traders from various countries also have an innovative platform to buy their digital assets and make a huge profit through it in a very short period. Such atmosphere to the peer-to-peer NFT Marketplace trading circumstance today evolves to peak than Cryptocurrency Exchanges. 

You can see more at: What is Opensea NFT marketplace and how to create it?

Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money 

🔥 If you're a beginner. I believe the article below will be useful to you ☞ [What You Should Know Before Investing in Cryptocurrency - For Beginner]

#blockchain  #bitcoin  #crypto  #cryptocurrency 

How to Edit Profile on OpenSea in 1 Minute | for Beginners

Learn JavaScript - Full Course for Beginners

JavaScript Tutorial for Beginners - Full Course in 12 Hours

Kickstart your Web Development career or take it to the next level with this JavaScript tutorial. This JavaScript course is perfect for Beginners as well as Intermediate Developers.

⏳Timestamps:
00:00:00 - Set up Your Environment as a JavaScript Developer
00:07:01 - JavaScript 101
00:22:39 - Build Your First App with JavaScript (Beginner Weather App)
00:40:44 - Build a Basic Tip Calculator App (For Beginners)
01:11:22 - What are Arrays in JavaScript? (Understanding Arrays | Arrays 101)
01:25:10 - What are Objects in JavaScript? (Understanding Objects | Objects 101)
01:45:04 - Understanding For Loops in JavaScript (Getting Started with Loops)
02:04:21 - Practice Arrays and Objects with these Exercises (For Beginners)
03:01:02 - Array Methods (mapping, filtering, reducing | Understanding Array Methods)
03:42:02 - Understanding the DOM (DOM Manipulation for Beginners)
04:22:31 - Build the Advanced Tip Calculator Project (For Beginners & Intermediate)
05:06:06 - Build a Rock Paper Scissors App (Part 1)
05:40:31 - Building the Rock Paper Scissors App with JavaScript (Portfolio Project!)
06:12:18 - What are APIs in JavaScript? (Understanding APIs)
06:33:51 - Build the Superhero App (For Beginners & Intermediate)
07:39:58 - Understanding Async Programming (Promises, Async, Await, Fetch, Then)
08:26:28 - Building the Weather App with JavaScript (Portfolio Project for Entry Level Developers)
08:54:59 - What are Classes in JavaScript? (Object Oriented Programming | OOP)
10:14:56 - Advanced Web Development (Loops, Listeners, Audio | For Beginners & Intermediate)
10:32:03 - Building the Fighting Game with JavaScript (Portfolio Project!)
11:49:52 - Building the Netflix Clone with JavaScript (Portfolio Project!)

#web3 #frontend #javascript #programming #developer #webdev #blockchain

Learn JavaScript - Full Course for Beginners
Best of Crypto

Best of Crypto

1656658080

Websocket Demo: The Binance Websocket Stream Testing Process

Websocket Demo 

This web app is developed to simplify the binance websocket stream testing process. By utilizing the interface, the user can check on multiple streams at a time without knowing the parameters. Since this app is designed for testing purpose instead of the real subscription tool, all the subscribed streams will be unsubscribed in 5 sec.

The left hand side of the screen has 2 parts. The upper is for user stream subscription. The user can select one of the user streams to subscribe given the valid listen key generated based on the api key. The lower is the market stream selection area. The user can only select the streams under the same data source. That is, once the user select a spot market stream, to select from other source, such as coin-m futures stream, is not allowed.

Note: Some of the symbols are only available in PRODUCTION.

Demo Site

img

Usage

Initialize Your Local Environment

  1. Download the repo
  2. Turn on the terminal and execute the following commands
$ cd <your project directory>
$ yarn install
$ yarn start

3.   Open your browser and access localhost:3000

Subscribe the User Data Stream

img

  1. Use RESTful API to generate the listen key and paste the key to the "Listen key" input box. (If you don't know how to generate the key, please check the API document in "Reference" section below.)
  2. Select the data source from the drop-down list
  3. Click the corresponding subscribe button.

Subscribe Market Streams

img

  1. Select the data source from the market stream section
  2. Select the stream(s) to subscribe from the drop-down list. If there is any parameter has to be settled, a modal with drop-down list(s) will show up.
  3. Click the testnet or production subscribe button.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test [TODO]

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn pretty-quick

Runs the code formatter. This command is also hooked with the pre-commit.

yarn storybook

Runs the storybook for component overview.
Open http://localhost:6006 to view it in the browser.

yarn build-storybook

Builds Storybook as a static web application.

Reference

Download Details:
Author: binance
Source Code: https://github.com/binance/websocket-demo
License: MIT license

#Binance #blockchain #websocket #javascript

Websocket Demo: The Binance Websocket Stream Testing Process
Best of Crypto

Best of Crypto

1656650700

How to Subscribe To Binance Websocket Server in Nodejs

Binance Websocket Examples

Local orderbook (Spot)

# Cache local orderbook and echo best price
# btcusdt by default
npm run orderbook

# or provide the trading pair
SYMBOL=bnbusdt npm run orderbook

Spot user data stream

# get user data steam
APIKEY=xxxxxx npm run user

# Get margin account update from websocket
APIKEY=xxxxxx APISECRET=xxxxx npm run margin-user

Futures user data stream

# Get user data steam on production
APIKEY=xxxxxx APISECRET=xxxxx npm run futures-user

# On testnet
APIKEY=xxxxxx APISECRET=xxxxx WSS_BASE_URL="wss://stream.binancefuture.com/" HTTP_BASE_URL="https://testnet.binancefuture.com/" npm run futures-user

Delivery Futures user data stream

# Get user data steam - defaults to production
APIKEY=xxxxxx APISECRET=xxxxx npm run delivery-futures-user

Combined streams

# Get multi pairs stream, setting the pairs in src/multi-stream-depth
npm run multi-stream

Spot trade stream delay monitoring

npm run monitor-spot-trade

Spot depth stream delay monitoring

npm run monitor-spot-depth

Futures depth stream delay monitoring

npm run monitor-futures

How to setup


npm install

# run test
npm run test

Download Details:
Author: binance
Source Code: 
License:

#Binance #blockchain #node #nodejs #websocket

How to Subscribe To Binance Websocket Server in Nodejs
Best of Crypto

Best of Crypto

1656643320

Binance CLI: A Simple CLI That interacts with The Binance API

Binance CLI

A simple CLI that interacts with the Binance API

Installation


# download the code
git clone git@github.com:binance/binance-cli.git
cd binance-cli
npm install -g

Usage


# Display help command
binance-cli -h

Market Data

get server time

binance-cli t
binance-cli time

get exchange infomation


binance-cli i
# get BTCUSDT pair's filters. jq is required.
binance-cli i | jq '.symbols[] | select(.symbol == "BNBUSDT") |.filters'

get order book

# binance-cli book <symbol>
# binance-cli book -l <limit> <symbol>
binance-cli book bnbusdt
binance-cli book --limit 10 bnbusdt

get trades

# binance-cli t <symbol>
binance-cli t bnbusdt
binance-cli t -l 10 bnbusdt

get aggregate Trades List

# binance-cli at <symbol>
binance-cli at bnbusdt

# get aggregate Trades List with parameters
# binance-cli at <symbol>
binance-cli at --limit 10 --startTime 1595937694913 --endTime 1595937794913 bnbusdt

get klines data

# binance-cli k <symbol> <interval>
binance-cli k bnbusdt 1m
binance-cli k -l 1 bnbusdt 1m

get average price

# binance-cli ap <symbol>
binance-cli ap bnbusdt

get 24hr ticker

# binance-cli ticker -s <symbol>
binance-cli ticker -s bnbusdt

get ticker price

binance-cli price
# or with a symbol
binance-cli price -s bnbusdt

get order book ticker

# binance-cli bt
# binance-cli bt -s <symbol>
binance-cli bt -s bnbusdt

listen to streams


# binance-cli listen <stream> <stream> <listenKey>
binance-cli listen bnbusdt@depth bnbusdt@bookTicker

User data and trade

It's required to set the API key and secret

export BINANCE_API_KEY=<the_api_key>
export BINANCE_API_SECRET=<the_api_secret>

buy

# place a limit buy order on BNBUSDT with price=350 and qty=0.05
binance-cli buy -s BNBUSDT -t LIMIT -q 0.05 -p 350 -f GTC

sell

# place a limit sell order on BNBUSDT with price=500 and qty=0.03
binance-cli sell -s bnbusdt -t limit -q 0.03 -p 500 -f GTC

get order details

binance-cli get bnbusdt -i 12345
binance-cli get bnbusdt -c my_order_123

cancel an order

binance-cli cancel bnbusdt -i 12345
binance-cli cancel bnbusdt -c my_order_123

cancel all open orders

binance-cli cancel_all bnbusdt

Use --help to consult all the available commands

binance-cli --help

Download Details:
Author: binance
Source Code: https://github.com/binance/binance-cli
License:

#Binance #blockchain #api #javascript

Binance CLI: A Simple CLI That interacts with The Binance API
Best of Crypto

Best of Crypto

1656636060

Binance ToolBox in PHP

A collection of PHP scripts that demostrates the usage of binance-connector-php.

Preparation

Installation


composer install

composer dump-auto

How to run

Market data endpoints

The market data endpoints can be executed straightaway:


php src/time.php

User data endpoints

API key and secret is required.

php src/order.php

See issues?

  • If the issue is about the library itself, please open a github issue.
  • If it's a general issue about the API, please open a topic at Binance developer forum.

Download Details:
Author: binance
Source Code: 
License:

#Binance #blockchain #php

Binance ToolBox in PHP
Best of Crypto

Best of Crypto

1656628740

Swagger for The Binance Public API

Binance Public API Swagger

Swagger is a set of tools around OpenAPI Specification that can help you design, build, document and consume REST APIs.

Binance now offers a YAML collection file on Binance Public Spot API to help developers' consulting of each endpoint through an interactive API documentation via Swagger UI.

  • Supported APIs:
    • /api/*
    • /sapi/*
  • Detailed parameters: mandatory or optional, descriptions and examples.
  • Detailed responses: description, examples for different status codes and field comments.
  • Endpoint Security Type
  • Includes Tesnet's base URL.

How to open Swagger UI

There's several options for the approach:

GitHub Pages:

Local UI instance:

  1. Install Docker
  2. Run locally:
./start.sh

3.   Open http://localhost:8080

Swagger Inspector:

  1. Open YAML file in GitHub and click "Raw":

Screenshot to indicate location of the raw button

2.   Copy and use previous step's URL in https://inspector.swagger.io/.

IDE (Integrated Development Environment):

  • There's available plugins that can be used to preview Swagger UI.

Swagger Hub:

Swagger UI Preview

Swagger UI Preview

Limitations

Futures and Vanilla Options APIs are not supported:

  • /fapi/*
  • /dapi/*
  • /vapi/*

CORS restrictions: Using Swagger UI beyond as API Documentation consulting, i.e, by actually trying out requests can result in invalid responses for endpoints requiring API Key (requests with header X-MBX-APIKEY). Swagger Inspector doesn't have this limitation.

No integration of automated generation for dynamic parameters, such as signature and timestamp.

Contributing

Contributions are welcome!
If you've found an issue within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please open a topic at our Binance API Community Forum.

Download Details:
Author: binance
Source Code: 
License:

#Binance #blockchain #api #swagger 

Swagger for The Binance Public API