https://github.com/starcoinorg/starcoin-php
starcoin php sdk
https://github.com/starcoinorg/starcoin-php
Last synced: 8 months ago
JSON representation
starcoin php sdk
- Host: GitHub
- URL: https://github.com/starcoinorg/starcoin-php
- Owner: starcoinorg
- License: apache-2.0
- Created: 2022-05-06T02:56:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T07:03:30.000Z (over 3 years ago)
- Last Synced: 2024-12-30T09:16:10.269Z (9 months ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 2
- Watchers: 18
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# starcoin-php
starcoin php sdk# How to use
## composer
```shell
composer require starcoin/starcoin
```# Examples
## query stc balance
```php
$myAddressHash = "0x0000000000000000000000000000000";
$starcoin = new StarcoinClient("https://main-seed.starcoin.org/");
$balance = $starcoin->getBalanceOfStc()
echo $balance;
```## transfer
```php
$starcoin = new StarcoinClient("https://main-seed.starcoin.org/");
```