Giter Club home page Giter Club logo

blocksdk-php's Introduction

PHP REST API SDK for BLOCKSDK V3

@BLOCKSDK on Facebook Total Downloads

__BlockSDK PHP__에 오신 것을 환영합니다. 이 저장소에는 BlockSDK의 PHP SDK와 REST API용 샘플이 포함되어 있습니다.

지원중인 블록체인 네트워크

비트코인 , 라이트코인 , 비트코인 캐시 , 웹후크 는 V2버전 에서 지원되고 있습니다.

1.이더리움
2.클레이튼  
3.바이낸스 스마트 체인
4.폴리곤
5.아발란체
6.이더리움 클래식

개발자 문서

요구 사양

시작하기

SDK 설치 – Composer를 사용하여 설치 것이 BLOCKSDK PHP SDK를 설치하는 권장 방법입니다. SDK는 block-chen/blocksdk-php 패키지의 Packagist를 통해 사용할 수 있습니다. Composer가 시스템에 전역으로 설치된 경우 프로젝트의 기본 디렉터리에서 다음을 실행하여 SDK를 종속성으로 추가할 수 있습니다.

composer require block-chen/blocksdk-php

코드 샘플

이더리움 테스트넷 클라이언트 생성

<?php
use BlockSDK;

$blockSDK = new BlockSDK("YOU_TOKEN");
$ethereumClient = $blockSDK->createEthereum();

//or

$ethereumClient = BlockSDK::createEthereum("YOU_TOKEN");

이더리움 메인넷 클라이언트 생성

엔드 포인트를 지정해주지 않는경우 테스트넷으로 기본 설정되어 호출 됩니다 메인넷은 아래 예시와 같이 클라이언트 생성시 두번째 매개변수를 메인넷으로 지정해 주시길 바랍니다.

<?php
use BlockSDK;

$blockSDK = new BlockSDK("YOU_TOKEN","https://mainnet-api.blocksdk.com");
$ethereumClient = $blockSDK->createEthereum();

//or

$ethereumClient = BlockSDK::createEthereum("YOU_TOKEN","https://mainnet-api.blocksdk.com");

이더리움 테스트넷 특정 컨트렉트 NFT 목록 가져오기

<?php
$nfts = $ethereumClient->GetSingleNfts([
    "contract_address" => "0xf5de760f2e916647fd766b4ad9e85ff943ce3a2b",
    "includeMetadata" => true,
    "offset" => 0,
    "limit" => 10
]);

var_dump($nfts);

이더리움 주소 생성

<?php
$address = $ethereumClient->CreateAddress([
    "name" => "test"
]);

blocksdk-php's People

Contributors

blockchen-admin avatar lee-il-woo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ghdqh1515

blocksdk-php's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.