public function registerToken($type = 'ERC20', $name, $symbol, $address)
    {
        $response = $this->apiClient->post('tokens/register', [
            'token_type' => $type,
            'name' => $name,
            'symbol' => $symbol,
            'address' => $address,
        ]);
        
        if (!isset($response['uid'])) throw new \ErrorException('Unexpected API response: ' . print_r($response, true));
        return $this->getToken($response['uid']);
    }
public function registerToken($type = 'ERC20', $name, $symbol, $address)
    {
        $response = $this->apiClient->post('tokens/register', [
            'token_type' => $type,
            'name' => $name,
            'symbol' => $symbol,
            'address' => $address,
        ]);
        
        if (!isset($response['uid'])) throw new \ErrorException('Unexpected API response: ' . print_r($response, true));
        return $this->getToken($response['uid']);
    }
public function registerToken ( $ type = 'ERC20' , $ name , $ symbol , $ address ) { $ response = $ this -> apiClient -> post ( 'tokens/register' , [ 'token_type' => $ type , 'name' => $ name , 'symbol' => $ symbol , 'address' => $ address , ] ) ; if ( ! isset ( $ response [ 'uid' ] ) ) throw new \ ErrorException ( 'Unexpected API response: ' . print_r ( $ response , true ) ) ; return $ this -> getToken ( $ response [ 'uid' ] ) ; }
Registers a new Token

@param string $type
@param        $name
@param        $symbol
@param        $address
@return Token
@throws \ErrorException
Registers a new Token