Browse Source

add response comments

main
ghost 3 years ago
parent
commit
ae0bdb926f
  1. 12
      src/system/twister.php

12
src/system/twister.php

@ -12,7 +12,7 @@ class Twister {
public function getError() { public function getError() {
return $this->_error; return $this->_error; // Error string
} }
public function importWallet(string $userName, string $userPrivateKey) { public function importWallet(string $userName, string $userPrivateKey) {
@ -40,7 +40,7 @@ class Twister {
} else { } else {
return true; return true; // empty error, empty result keys on success
} }
} }
@ -71,7 +71,7 @@ class Twister {
} else { } else {
return $response['result']; return $response['result']; // Block hash
} }
} }
@ -102,7 +102,7 @@ class Twister {
} else { } else {
return $response['result']; return $response['result']; // Array of the block data
} }
} }
@ -133,7 +133,7 @@ class Twister {
} else { } else {
return $response['result']; return $response['result']; // Private Key
} }
} }
@ -164,7 +164,7 @@ class Twister {
} else { } else {
return $response['result']; return $response['result']; // transaction ID
} }
} }

Loading…
Cancel
Save