$response = TurtleCoin::wallet()->getBalance($walletAddress);
// The result field from the RPC response
$response->result();
array:2 [▼
"availableBalance" => 10000
"lockedAmount" => 0
]
$response = TurtleCoin::wallet()->getBalance($walletAddress);
// Full RPC response as JSON string
$response->toJson();
// Full RPC response as an array
$response->toArray();
// Or other response details
$response->getStatusCode();
$response->getProtocolVersion();
$response->getHeaders();
$response->hasHeader($header);
$response->getHeader($header);
$response->getHeaderLine($header);
$response->getBody();