This is the naivecoin PHP SDK. This SDK contains methods for easily interacting with the Naivecoin API
A[LOCAL] -- Call API --> B((SDK))
B --> C[NODE]
C --> A
The SDK requires PHP 7.0+
Initialize Class Naive Coin, set host and port with __construct
array header
constructor
@param string $host_api
@param int $port
Set attribute
@param string $property
@param type $value
@return $this
Get all blocks
@return type
Get the latest block
@return type
Get block by index
@param int $index
@return type
Get block by hash
@param string $hash
@return type
Get a transaction from some block
@param string $transactionId
@return type
Get all transactions
@return type
Get unspent transactions
@return type
Get all wallets
@return type
Create a wallet from a password
@param type $password
@return type
Get wallet by id
@param type $walletId
@return type
Get all addresses of a wallet
@param type $walletId
@return type
Create a new address
@param type $password
@param type $walledId
@return type
Create a new transaction
@param string $walletId
@param string $password
@param string $from
@param string $to
@param int $amount
@return type
Get the balance of a given address
@param type $addressId
@return type
Get all peers connected to node
@return type
Connects a new peer to node
@param string $url
@return type
Get how many confirmations a block has
@param string $transactionId
@return type